Search Unity

Dropdown List always expands upward?

Discussion in 'UGUI & TextMesh Pro' started by _eternal, Jul 10, 2018.

  1. _eternal

    _eternal

    Joined:
    Nov 25, 2014
    Posts:
    304
    From the documentation, I see that you can control which way a Dropdown expands based on the Template's pivot and anchor. I have a Dropdown positioned near the top of the canvas, and its Template is anchored to the bottom with its pivot on top. However, the Dropdown always expands upward, as shown below.

    Unity_2018-07-10_16-31-39.png

    Unity_2018-07-10_16-31-47.png

    This happens no matter how I position the Dropdown or its Template. Here's a hierarchy snippet.

    Unity_2018-07-10_16-40-41.png

    The strangest part of this is that when placed at the top, expanding the Dropdown upward actually pushes it outside of the parent Canvas. So the automatic expansion is doing the opposite of what it's supposed to.
     
  2. cdytoby

    cdytoby

    Joined:
    Nov 19, 2014
    Posts:
    181
    Same issue here.
     
  3. cdytoby

    cdytoby

    Joined:
    Nov 19, 2014
    Posts:
    181
    Just tested, if I set template like the dropdown upwards show, the actual dropdown will show downward correctly....

    Definitely a bug. Please fix it. I'm using 2017.4.10f1
     
    imDanOush likes this.
  4. _eternal

    _eternal

    Joined:
    Nov 25, 2014
    Posts:
    304
    Can you file a bug report if it's still happening in your project? I hard coded a solution for mine a while ago and I already kinda forgot the details of this issue.