When changing the width and height of a window the platform code is responsible 
for enforcing the min and max size constraints. If the final width and height 
don't match the width and height passed into setBounds the platform needs to 
call notifyResize to correct the window's properties. This happens naturally if 
the window size actually changes since that will trigger the OS to send size 
change notifications. If the platform window size doesn't change the OS 
notifications won't trigger. We need to catch that case and send notifyResize 
anyway.

This PR does this for Mac and Windows. Linux is being handled in PR #1789 which 
also includes the system tests for these bugs.

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

Commit messages:
 - If min/max window size enforced send notification to correct Window 
properties
 - Merge remote-tracking branch 'upstream/master' into sendcorrectsize
 - Comment cleanup
 - Notify WindowStage if setBounds didn't change the size as expected

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

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

Reply via email to