JDK-8355990 : [macOS] Restoring a maximized stage does not update the window size
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: jfx22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2025-04-30
  • Updated: 2025-08-14
  • Resolved: 2025-08-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx26 b04Fixed
Related Reports
Duplicate :  
Relates :  
Description
Using the setMaximized(false) call on a stage will restore the window but the width and height properties will not be updated to reflect the new size.

You can reproduce this with the attached test file. Press the Maximize button twice to maximize and then restore the test stage. The width property will remain at the maximized size.

The test case shows a log of how various properties change during the animation which reveals a number of other underlying problems. At the start of the animation the size appears to change immediately to the final size and then a series of move notifications are sent out during the animation. While this is going on the maximized flag can change state more than once.

You can also see anomalies if you maximize and restore using the platform controls. At the very start of the animation the size is updated to the final size. Then a series of correct move and size events are sent out until the animation ends.

To use the platform controls you may have to go to System Settings > Desktop & Dock. For "Double-click a window's title bar to" select "Zoom". Then use double-clicks to zoom and unzoom the window.


Comments
Changeset: 657d34f8 Branch: master Author: Martin Fox <mfox@openjdk.org> Date: 2025-08-07 15:28:34 +0000 URL: https://git.openjdk.org/jfx/commit/657d34f82480f985f4d3d0477c907879ef30af79
07-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1860 Date: 2025-07-29 14:45:36 +0000
29-07-2025