#3403·iced

Scrollbar `Length::Shrink` takes too much space

Author: MrFantOlasCreated Jul 30, 2026Updated Sep 1, 2026
Labelsbug

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

I am using a scrollbar in a column (I will call this column the Group) with items on top and one item bellow. The Length of the scrollbar is set to Length::Shrink and so is the length of other items (its their default). I have a row bellow the scrollbar. This row does not show up unless the items contained in the scrollbar (I have a column of buttons with rows inside) are so few that they all fit within the space allocate to this Group. The same behaviour applies when setting Length::Fill. Setting the scrollbar to a fixed length is a workaround that will allow the bottom row to be displayed.

What is the expected behavior?

I expected that have the length strategy to Length::Shrink would make all items of the Group visible with the bottom row always showing and the scrollbar taking as few space as possible. I also expect that setting the length to Length::Fill the scrollbar would let the item bellow to still be visible while take as much space as possible within the Group.

Version

crates.io release

Operating System

Linux

Do you have any log output?

bash