Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ScrollView Horizontal Scroller not showing

Discussion in 'UI Toolkit' started by unitydungeonmas, Nov 11, 2020.

  1. unitydungeonmas

    unitydungeonmas

    Joined:
    Sep 6, 2020
    Posts:
    37
    i have this scrollviw:

    Code (Boo):
    1. <ui:ScrollView name="selection" mode="Horizontal" focusable="false" show-horizontal-scroller="true" show-vertical-scroller="false" style="flex-direction: row; white-space: nowrap; display: flex; overflow: visible; align-items: auto;" />
    I add item to it, going from left to right, but the horizontal scroll bar does not appear, in the debugger it has a 0x0 size, while you can see that it it cropped off on the right side, am i missing anyting
     
    bustrama likes this.
  2. unitydungeonmas

    unitydungeonmas

    Joined:
    Sep 6, 2020
    Posts:
    37
    when i change the mode to Vertical, everything adds from up to down, even though there are spaces to go right, but the vertical scrollbar shows up
     
  3. unitydungeonmas

    unitydungeonmas

    Joined:
    Sep 6, 2020
    Posts:
    37
    i fixed this, it was in the style sheet
     
  4. bustrama

    bustrama

    Joined:
    Aug 9, 2020
    Posts:
    2
    How did you fix it, I need only horizontal scrolling