-
Notifications
You must be signed in to change notification settings - Fork 523
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
Calculate Scroll based on Childs relative position to ScrolledPanel #1950
base: master
Are you sure you want to change the base?
Conversation
didn't mean to close this |
CC @RobinD42. |
cc @@swt2c |
It seems OK to me, but is there a way to observe the problem in the existing code (e.g., in a demo or something)? |
I'm not sure on the standard way to create a minimal sample for this repo. |
ScrolledPanel
s do not automatically scroll via tabbing if the focused control is not a direct child of theScrolledPanel
Instead of using
child.GetRect()
, which calculates the position relative to the parent, calculate the position of thechild
relative to theScrolledPanel
itself.