-
Notifications
You must be signed in to change notification settings - Fork 541
8252236: TabPane: must keep header of selected tab visible #300
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 fastegal! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
/reviewers 2 |
|
@kevinrushforth |
|
In a bid to find more scenarios like you did mention description, I observed two more scenarios when selected tab does not stay in view.
About 1, I did quickly verify that it gets fixed by adding |
|
good catch and many thanks for the evaluation - now all I'll have to do is to write tests to catch them :) Will also update the bug summary as you suggest. Agree, that the second can be regarded as off scope, as it seems to effect both header and content - will not do anything in this fix. |
|
Widened scope of the issue to include problems after modifying the list of tabs: added fix and tests. Separated dragging issues into a new bug (there's an unrelated isssue when dragging over the leading edge, fixing that might have effects on the trailing edge, so didn't do much to fix the issue/s on the latter except ensuring the visibility after drop). |
arapte
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.
Looks good to me, left a minor comment.
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TabPaneSkin.java
Show resolved
Hide resolved
arapte
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.
Looks good to me.
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. Thanks for the additional, well-documented tests!
|
@kleopatra 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 more 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 8 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 |
|
/integrate |
|
@kleopatra Since your change was applied there have been 8 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 5b42b64. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
the issue is that the header of the selected tab is not always visible (or kept visible, see report for details)
Fixed in TabPaneSkin to notify its TabHeaderArea (== collaborator that is responsible for layout the tabs) whenever its scroll might need an update.
Added tests that fail before and pass after the fix.
Note that there still are issues while/after dragging, which are separated into JDK-8253352
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jfx pull/300/head:pull/300$ git checkout pull/300