Fyrox icon indicating copy to clipboard operation
Fyrox copied to clipboard

Scrollbar has fixed size and sometimes is so big that it can't be dragged.

Open martin-t opened this issue 4 years ago • 1 comments

In the screenshot you can see 4 entries but there are actually 6. The widget is however so small that dragging the scrollbar with mouse is impossible - i have to click the down arrow (or... thinking about it now... use the mouse wheel but mine is broken so it didn't occur me until now ;) ).

The underlying issue is that the scrollbar has a fixed size but increasing the side of this widget would be a nice thing too.

2021-10-08-182944_418x282_scrot

martin-t avatar Oct 08 '21 16:10 martin-t

Happens because slider has fixed size - https://github.com/rg3dengine/rg3d/blob/master/rg3d-ui/src/scroll_bar.rs#L516

mrDIMAS avatar Oct 08 '21 19:10 mrDIMAS

@mrDIMAS will decreasing the minimum size here help?

https://github.com/FyroxEngine/Fyrox/blob/7de5a3107da2dfab180fd23f4c79b2542b466d70/fyrox-ui/src/scroll_bar.rs#L548-L555

shyamjayakannan avatar Apr 07 '24 12:04 shyamjayakannan

I think the size of the indicator should be adaptive to the actual size of the content of a ScrollViewer. This issue is a bit more complex than just decreasing the size, simply because currently the size is fixed and decreasing it would result in quite unusable scroll bar.

mrDIMAS avatar Apr 07 '24 13:04 mrDIMAS