After zooming in, set topinpixels to the panel.
For example panel.scalX = panel.scalY = 3;
Then set topinpixels = 501 ,the panel disappears.
but set topinpixels = 500, the panel is in the right place.
I tried your PG but I’m not sure about what happens. Can you modify your PG to highlight your issue. Like by commenting a line. Or 2 PGs. 1 that works and 1 that doesn’t. I’d be happy to help
The issue you get is because of the scale. It’s used to map one panel into the other one. If the scale is > 1 then, the coordinates of panel are bigger than panelk. This clamps the rendering. if you set the scale to values between 1 and 2, you’ll get clamping at different positions.
So, if you do not want clamping, I suggest you to keep scaleX, scaleY at 1 and change heightInPixels and widthInPixels instead.