-
Notifications
You must be signed in to change notification settings - Fork 542
8371106: [macOS] Min/max window height is incorrect for EXTENDED StageStyle #1967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Welcome back mstrauss! A progress list of the required criteria for merging this PR into |
|
@mstr2 This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
andy-goryachev-oracle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing looks good.
| { | ||
| GlassWindow *window = getGlassWindow(env, jPtr); | ||
| [window->nsWindow setMinSize:NSMakeSize(jW, jH)]; | ||
| NSSize minSize = NSMakeSize(jW, jH); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this structure need to be freed at some point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a value struct, no heap allocation going on. So it doesn't need to be freed.
kevinrushforth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks good.
I confirm that it fixes the standalone test case attached to the bug and fixes the test failures I was seeing in the new SizingTest test added as part of PR #1789.
|
/integrate |
|
Going to push as commit 013e55b.
Your commit was automatically rebased without conflicts. |
This patch fixes window size contraints for an
EXTENDEDstage. In contrast to the suggested workaround in the JBS ticket of querying the value ofNSWindow.minSizeto find out the added size for the toolbar, I've found it easier to set theNSWindow.contentMinSizeproperty instead.This is only done for
EXTENDEDstages, preserving the existing behavior for all other stage styles, and it works because extended stages use a full-size content view that covers the entire window. It also makes it unnecessary to take the toolbar height into consideration, which would be necessary if we used theminSizeproperty instead./reviewers 2
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1967/head:pull/1967$ git checkout pull/1967Update a local copy of the PR:
$ git checkout pull/1967$ git pull https://git.openjdk.org/jfx.git pull/1967/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1967View PR using the GUI difftool:
$ git pr show -t 1967Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1967.diff
Using Webrev
Link to Webrev Comment