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

Andy Goryachev angorya at openjdk.org
Mon Jul 10 16:11:12 UTC 2023


On Mon, 10 Jul 2023 07:26:10 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

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

looks good now, thanks!

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

Marked as reviewed by angorya (Reviewer).

PR Review: https://git.openjdk.org/jfx/pull/1168#pullrequestreview-1522427717


More information about the openjfx-dev mailing list