If the scaleFactors used for the current device are not 1.0, a JXFPanel will 
send a resize event with 0x0 dimensions to the JavaFX scene which can have 
undesirable effects, which is because the resize pixel buffer is created even 
for initial size of 9x0 width,height.
Fix is to make sure to prevent resizing the pixel buffer for initial 
width/height of 0.

-------------

Commit messages:
 - 8231865: JFXPanel sends resize event with size 0x0 on HiDPI devices

Changes: https://git.openjdk.org/jfx/pull/1168/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1168&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8231865
  Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jfx/pull/1168.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1168/head:pull/1168

PR: https://git.openjdk.org/jfx/pull/1168

Reply via email to