Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug TMPro Dropdown list has incorrect height

Discussion in 'UGUI & TextMesh Pro' started by RisingSunStudios, Jun 19, 2023.

  1. RisingSunStudios

    RisingSunStudios

    Joined:
    May 23, 2018
    Posts:
    32
    Hi.

    I'm using the Dropdown - TextMeshPro component and when it dynamically creates the dropdown list, it is setting the "Dropdown List" rectTransform to the height of a the count of (options - 1). When there are only 2 options, this creates a dropdown of the height of 1 item.

    The total height of my items is 80 (4 items at 20 each). The content size fitter height calculates its bounds as 80. When the "Dropdown List" gameobject is created, it has an incorrect height of 60.

    This is with TextMeshPro 3.0.6 and Unity UI 1.0.0
     
  2. RisingSunStudios

    RisingSunStudios

    Joined:
    May 23, 2018
    Posts:
    32
    Ok nevermind, doesn't happen with the default TMPro dropdown so must be something in my setup