itemList GIANT scroll bar width

Godot Version

4.4

Question

Is there a way to change the scroll bar width in an itemList ?

this is my Window viewPort size 480, 272
strech mode: canvas items
aspect: ignore

if i set a windowViewport size bigger than this i will have to zoom the camera

I found something that might help here.

I did try this for you:

$ItemList.get_v_scroll_bar().custom_minimum_size.x = 155

But it had a weird effect. I think you have to change the container margins as well. The scroll bar gets thicker but the margins for it need setting as well.

If you do set it in code it won’t show in the editor, so best to do this in a theme setting or style box I think.

Hope that helps in some way.

that is only of the main problems,
this doesnt work:

scrollbar.custom_minimum_size.x = 1;

if i set it to 20 its laready too wide