applet pixel positions off when locally served on Mac OSX and Firefox




7 years ago
7 years ago


(Reporter: John Kaplan, Unassigned)


3.6 Branch
Mac OS X

Firefox Tracking Flags

(Not tracked)



(1 attachment)

263.82 KB, application/octet-stream


7 years ago
Created attachment 563289 [details]

User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20110902 Firefox/3.6.22
Build ID: 20110902133716

Steps to reproduce:

I noticed the display was truncated and popup menus were appearing offset from where I clicked when testing a non-trivial applet. So I created a simple applet to repro that just displays the xy coordinates from the mouse event when you activate a pop-up. (attached) You can see this is a basic, simple applet, similar to a Sun example.
Mac OSX 10.6.8
Firefox 3.6.22
Java 1.6.0_26

Actual results:

When the applet is displayed in a browser local to the same server where the website is hosted, the display is truncated. Instead of a grid of 4 50x50 pixel squares, you just see 3 of the squares with the 4th truncated (see any of the attached screen shots titled LocalFirefox...). Also, mouse event pixel positions are offset. The further you get from the top-left corner of the applet, the larger the offsets. This is demonstrated in the attached applet by displaying the x-y coordinates in the popup menu. The cursor doesn't display in the attached screenshots, but the clicked-on coordinates marked by the 50x50 grid are in the screenshot titles. 

Expected results:

Display should show the entire 4x4 grid of rectangles, and mouse event coordinates should correspond to exactly where the mouse is clicked. This does not repro on locally served Safari (see attached screen shot) or on any browser I tried from remote systems across an intranet, including Firefox & Safari on Mac or Firefox, IE, or Chrome on WinXP.

Comment 1

7 years ago
Found an additional factor - this is affected by zooming the window. When the window is the right size in Firefox, the applet fills the display properly and menus pop up in the right place. You can make the menus appear either offset to the bottom right or offset to the top left by zooming the window size in or out. Still can't repro on Safari even when zooming in and out.

Comment 2

7 years ago
Have you tried to reproduce this issue on the latest Firefox?

Comment 3

7 years ago
Just upgraded to v 7.0.1, and it does not repro.
The popup menu tracking and other location-related Java functions seem to work fine at every level of zooming I tried.

Comment 4

7 years ago
Considering comment3, setting resolution to Resolved WFM.
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.