Hey everyone,
I’ve recently started experimenting with the Unity UI Toolkit and would like to style a scrollbar. Specifically, I want the dragger of the scrollbar not to fill the entire height of the scrollbar but to always have some margin to the top and bottom of the tracker. I can manage to add spacing to the top by setting the top & bottom margin of the dragger to 1, but the bottom of the dragger still always aligns with the bottom of the tracker as the margin just gets added on with no regards to the actual tracker height:
I’ve already tried changing the position of the dragger to relative and the top and bottom position. Similarily, adjusting the height of the dragger to just 99% does not help as well. I also tried changing the padding of the parent elements of the dragger, but due to the hierachy layout, this affects the tracker as well, as they are at the same level:
Does anyone have ideas or approaches on how to achieve margine settings like this?
Thanks in advance!
