-
-
Notifications
You must be signed in to change notification settings - Fork 659
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
Ensure settings are scrolled to using tab navigation #12300
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f091556
create TabbableScrolledPanel
seanbudd 04ca0a9
add return types
seanbudd 3b0b0e8
removed unused imports
seanbudd 019d477
add note to wxPython PR
seanbudd abda74b
Merge branch 'master' into fix-12224
seanbudd e926a92
simplify logic
seanbudd c796ccc
Merge branch 'master' into fix-12224
seanbudd 38eb378
fix lint
seanbudd 2afc54d
wrap in try/finally
seanbudd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I avoided suggesting this because it's a little dangerous. If any of the other method calls within
super().ScrollChildIntoView
rely on the absolute value for rect for the child, this will be broken in a subtle way.Worse, by the time we update wxPython, we may have forgotten about this.
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.
child
is only used once insuper().ScrollChildIntoView
, and that is to calculate the incorrectchild.GetRect
https://github.com/wxWidgets/Phoenix/blob/wxPython-4.1.1/wx/lib/scrolledpanel.py#L190. Do we only updatewxPython
with compatibility breaking releases? That way I can mark this as deprecated for 2022.1 so it won't get lost.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.
I think it makes sense that we only update on compat breaking releases. Let's mark it as deprecated.