Druid: Show scroll when changing size

Created on 14 Aug 2020  路  3Comments  路  Source: linebender/druid

If we scroll and show the scrollbar, we can see it's size changing, but if we keep on changing the height of the content, it eventually fades away.
Would there be a way to keep it if the content is changing. That's how most other frameworks do it, just do that you know that something's changing.

D-Easy bug widget

Most helpful comment

Oh, my bad

changing the height of the content

missed the "content", thought you were referring to changing the windows size.

I think we can fix this by showing the scroll bar whenever the content size changes (during layout), should be easy to fix.

All 3 comments

What platform are you using? I tried it with GTK and X11 and both keep the bar visible as long as I keep resizing.

I'm on Linux, GTK as well... You resize what? I tried it with the list example and if you keep on adding items, the scroll starts acting up.

EDIT: At first I was testing it out with master branch from Github, but then I switched to the crates.io 0.6.0 and the issue persisted.

Oh, my bad

changing the height of the content

missed the "content", thought you were referring to changing the windows size.

I think we can fix this by showing the scroll bar whenever the content size changes (during layout), should be easy to fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrandri19 picture mrandri19  路  4Comments

raphlinus picture raphlinus  路  4Comments

cmyr picture cmyr  路  6Comments

insignification picture insignification  路  5Comments

raphlinus picture raphlinus  路  5Comments