-
Notifications
You must be signed in to change notification settings - Fork 48
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
Column scroll distance not updated until window is manually resized #38
Comments
Thank you for the very detailed report and the recording. I think it is clear to me what the unexpected/expected behaviors are, though the cause is not immediately apparent. Tentatively, I will call this a bug. At this moment, I can't make any promises as to timelines for a fix, but I will investigate as my time allows and try to come up with a fix or workaround. I'll also be happy to collaborate with any other interested people to investigate and/or review PRs that address this. Thanks again for the report! |
Possibly helpful info: I just searched through the PSG issues and found #5017 that suggested adding both of these after changing the scrollable column's contents (in my case, changing visibility of pinned frames):
With my first example script (above), this only worked if there was only one element that changed size, but not if there were multiple elements that changed size. After more testing, adding these lines is giving mixed results. I was able to create one layout that seems to work when using them. The problem may have to do with the depth of nesting in container elements within the top-level, scrollable column. Layout that is working better:
I'm going to try and add all of contents of my app layout into this template, and see how it works. If it works, I may not need an open issue. Thank you, |
I'm having trouble with using tabs or the "visible" property of frames within a column that has scrolling enabled.
I'm trying to create a layout that fits vertically on the screen when the app is started, so I made some of the frames invisible, and allow them to be made visible when needed. I've tried tabs and the "visible" property, but the scrollbars of the containing column are not updating correctly.
If the frames are hidden to begin with, the main column scrollbars are set for the minimized content, and they don't update when the content is maximized. If the frames are visible to begin with, the scrollbars are set correctly - but when the frames are minimized they reset to the smaller size, and when the frames are maximized, they don't update again.
For some reason, the scrollbars reset when minimizing sections, but not when maximizing sections.
If you maximize sections and then manually resize the window by any amount, the scrollbars will reset to the current view. But this does not happen when programmatically resizing the window, so it's not a workaround.
Scroller_Size_Test.mov
macOS Sonoma 14.7
Python 3.12.4
FSG Version: 5.1.1
tkinter version 8.6
The text was updated successfully, but these errors were encountered: