JDK-8115401 : Sizing in custom controls behaves different since b87
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-04-26
  • Updated: 2015-06-17
  • Resolved: 2013-05-20
Related Reports
Duplicate :  
Relates :  
Description
Since JDK8 b87 I get a bit strange sizing behavior. On the attached screenshots you will find a led control and one image shows the expected visualization (like it was before b87) and the current visualization in b87. It looks like the size is exactly doubled. If you take a look in the attached source code you will find a comment in the LedSkins resize() method which will fix the issue by resizing the control to the half size. I'm not sure but it might be related to the Retina resolution on my Macbook Pro. Unfortunately I have no Windows/Linux machine to test it on.

Please find the files here: https://dl.dropboxusercontent.com/u/84552/tmp/issues/rt-30011.zip

Here are two videos that show the behavior (now in b88): http://t.co/V6lffnfFfu and http://t.co/UNWoa4Gkre

This does not only happen on Custom Controls but every control.
Comments
Works in b91...THANX A LOT !!!
24-05-2013

Correction. This will be in b91.
21-05-2013

This is a duplicate of RT-30272 which is fixed in JDK 8 b90
20-05-2013

Thanks Gerrit. You made my day.
15-05-2013

If you add -Dprism.forcepowerof2=true the scaling is ok again...
15-05-2013

Here are some links to screenshots before and after issue arose (same window size). Controls don't even respond to mouse or keyboard events. Basically totally borked. Screenshot #1: b86: https://www.dropbox.com/s/a5zzi84xftcxwfm/Show%201%20b86.png Screenshot #1: b89: https://www.dropbox.com/s/mjkr0noesuee46m/Shot%201%20b89.png Screenshot #2: b86: https://www.dropbox.com/s/prz3pdw924miuyz/Shot%202%20b86.png Screenshot #2: b89: https://www.dropbox.com/s/9etj27eu2xbx8if/Shot%202%20b89.png
13-05-2013

Why is there so much silence on this issue? Doesn't anyone at Oracle use hidpi displays? javafx 8 is unusable for many of us.
13-05-2013

I'd like to try fixing this myself. Can anyone point me to where to look? The mac-specific glass code looks OK.
10-05-2013

same problem in b89
10-05-2013

b88 has same problem
03-05-2013

Can't use >= b87 on Retina MacBook either. Would really like to test 3D on OS X. But this bug prevents me to do so. Please fix this soon!
03-05-2013

This bug is stopping me from testing/debugging any further releases of javafx 8 on my mac. Stuck on b86.
01-05-2013

Combination of retina display and Mac OS X makes this sound like it is a graphics issue.
27-04-2013

b87 has resulted in everything in my GUI being double-size. I have a retina Macbook as well.
26-04-2013