RFR: 8231865: JFXPanel sends resize event with size 0x0 on HiDPI devices [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Jul 10 07:26:10 UTC 2023


> 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.

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Make pWidth/pHeight 0 after border insets if it's negative

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/1168/files
  - new: https://git.openjdk.org/jfx/pull/1168/files/d8ba8797..4e61ece2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1168&range=01
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1168&range=00-01

  Stats: 8 lines in 1 file changed: 4 ins; 4 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


More information about the openjfx-dev mailing list