Changed topPan to px