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

Kevin Rushforth kcr at openjdk.org
Mon Jul 10 16:43:19 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

Ideally, a regression test -- either automated (if feasible) or manual -- would have been included with this fix. Is it worth a follow-on bug to add such a test?

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

PR Comment: https://git.openjdk.org/jfx/pull/1168#issuecomment-1629332242


More information about the openjfx-dev mailing list