Skip to content

Fix broken scrollbar in SpacesView - #1186

Merged
fracturehill merged 2 commits into
mainfrom
work/spacesscrollbar
Oct 20, 2026
Merged

fracturehill merged 2 commits into
mainfrom
work/spacesscrollbar

Conversation

@fracturehill

Copy link
Copy Markdown
Contributor

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.

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 TheOneRing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, thx for figuring that out

@fracturehill
fracturehill merged commit fe83dc5 into main Oct 20, 2026
@fracturehill
fracturehill deleted the work/spacesscrollbar branch October 20, 2026 09:56
@openclouders openclouders mentioned this pull request Oct 20, 2026
1 task
@saw-jan saw-jan mentioned this pull request Nov 25, 2026
9 of 22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants