Repository navigation
Fix broken scrollbar in SpacesView - #1186
Merged
Merged
Conversation
For unknown reasons, having a Connections item inside the ScrollView instead of the root Pane made a mess of the layout, making the ScrollView's content the same size as the view itself (so the scrollbar attached to it had nothing to scroll through), while the ListView did its own scrolling, but with no attached scrollbar. This happens regardless of any actual connections, even an empty Connections causes this behavior. This commit moves the Connections to the root item, which restores the automagic setup of the ScrollView providing its scrollbar to control the ListView's scrolling. The confusing "anchors.fill: parent" in the ListView is also removed, since this fix also makes it unnecessary.
This commit moves the call to setOCContext() inside setAccount(), after the image provider for the QML engine has already been added. With the previous setup, QML would try to load the images while the layout was getting built, fail, and then wouldn't retry after the image provider was added. This behavior was previously masked by a layout bug in SpacesView that caused the whole layout to get rebuilt after it was loaded once.
TheOneRing
approved these changes
Oct 20, 2026
TheOneRing
left a comment
Contributor
There was a problem hiding this comment.
Wow, thx for figuring that out
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For unknown reasons, having a Connections item inside the
ScrollView instead of the root Pane made a mess of the layout,
making the ScrollView's content the same size as the view itself
(so the scrollbar attached to it had nothing to scroll through),
while the ListView did its own scrolling, but with no attached
scrollbar. This happens regardless of any actual connections,
even an empty Connections causes this behavior.
This PR moves the Connections to the root item, which
restores the automagic setup of the ScrollView providing its
scrollbar to control the ListView's scrolling. The confusing
"anchors.fill: parent" in the ListView is also removed,
since this fix also makes it unnecessary.
The layout fix exposes a different bug with the way Space
thumbnails are set up, so a second commit moves the
instantiation of the QML file after an image provider has
already been added, ensuring thumbnails actually show up.