Skip to content
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

Inconsistent scrollbar in palettes #11528

Open
jessjwilliamson opened this issue May 5, 2022 · 1 comment
Open

Inconsistent scrollbar in palettes #11528

jessjwilliamson opened this issue May 5, 2022 · 1 comment
Assignees
Labels

Comments

@jessjwilliamson
Copy link
Contributor

Describe the bug
A strange scrollbar bug when scrolling through 'Bagpipe embellishments' in palettes. This specific category has the longest vertical list which causes strange scrollbar behaviour.
So far only tested using a mouse wheel, unsure about the trackpad yet.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to pallettes
  2. Click on 'Bagpipe embellishments' and expand the category
  3. Scroll down through palettes
  4. See bug

Expected behaviour
A consistent scrollbar throughout the whole vertical palettes section.

Screenshots

2022-05-05.11-35-30.mp4
@jessjwilliamson jessjwilliamson added the P2 Priority: Medium label May 5, 2022
@jessjwilliamson jessjwilliamson added this to To do in [MU4.0 - PALETTES] via automation May 5, 2022
@llui85
Copy link

llui85 commented May 11, 2022

This is also an issue in MU3. Additional context from #10085 (comment):

Comment by cbjeukendrup:

Palettes have an additional problem. They make use of the QML ListView component. That component only loads the list items that are currently in the viewable area; items that are scrolled out of view are destroyed (to save memory) and will be recreated when they will get into the view again.

Because not all items are loaded at a time, the total height of the scrollable area cannot be calculated. It can only be estimated, which is what QML does: it takes the average height of all visible items, and then uses that height to estimate the total height.

This works perfectly fine if all list items have exactly the same height, which is the case in most list views. But in the Palettes, this is totally different: collapsed palettes are very small, while expanded palettes vary from tall to very tall. The estimated total height will be totally wrong. Also, it will change continuously while scrolling, because other items become visible, so the average height of the visible items changes. That causes jumping and other strange behaviour.

I'm not totally sure about a solution. One option would be to replace the ListView by a Flickable+Column+Repeater. I also believe that you can control the "cache size" of the ListView, so if that works, that would be another option.

@cbjeukendrup cbjeukendrup added this to To do in 4.x SHORTLIST via automation Feb 12, 2023
@oktophonie oktophonie changed the title [MU4 Issue] Inconsistent scrollbar in pallettes Inconsistent scrollbar in palettes Jul 28, 2023
@oktophonie oktophonie removed this from To do in [MU4.0 - PALETTES] Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: One of the next releases
4.x SHORTLIST
  
To do
Development

No branches or pull requests

5 participants