-
Notifications
You must be signed in to change notification settings - Fork 512
8228363: ContextMenu.show with side=TOP does not work the first time in the presence of CSS #381
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 rlichten! A progress list of the required criteria for merging this PR into |
To avoid this situation, create a new branch for your changes and reset the
Then proceed to create a new pull request with |
Webrevs
|
/reviewers 2 |
@kevinrushforth |
This changes the specification in a way that will require prior discussion,. It also will need a CSR. |
@kevinrushforth has indicated that a compatibility and specification (CSR) request is needed for this pull request. |
I recommend that you follow the instructions in the earlier comment about pushing these changes to a new branch, resetting your master branch, and creating a new PR from your new branch. |
|
Ah yes, will try to do so tomorrow. |
Regarding the spec change, I was thinking of this section, which you removed:
As you pointed out, the reference to |
I assume that a very long time ago, there were hpos and vpos parameters for this method. And that really required an explanation, because then you could e.g. specify hpos=RIGHT and vpos=BOTTOM, which would give a very strange position for the context menu (the top left corner of the menu would be in the bottom right corner of the button). |
I've just "recreated" this PR as #383 which is based on a separate branch as suggested. |
By using the anchor location facility of PopupWindows we can avoid miscalculation of the
menu's height entirely.
This fix also cleans up some documentation issues.
This fix introduces tests that check the correct positioning (test_position_)
test_position_withCSS reproduces the problem that is fixed with this patch.
The other test_position_ cases serve as "proof" that no regressions are introduces.
They work before and after the fix is introduced.
Progress
Integration blocker
Issue
Download
$ git fetch https://git.openjdk.java.net/jfx pull/381/head:pull/381
$ git checkout pull/381