Search Issue Tracker

Won't Fix

Votes

4

Found in

2017.2.0b6

Issue ID

943982

Regression

No

Vertical Layout Group doesn't update the children when the size of one is changed and it doesn't have an Image component on it

uGUI

-

To reproduce:

1. Open the project, attached by the user (UISketches2017.2b.zip)
2. Open "EmptyScene" scene
3. Find PanelItem game object in the Hierarchy and change its height
4. Observe how Vertical Layout Group, put on the Panel game object, doesn't update.
5. Enable the Image component on the PanelItem
6. Change PanelItem's height
7. Observe how Vertical Layout Group updates

Expected: Vertical Layout Group updates when the height of its child changes regardless whether an image script is enabled or not
Actual: changing the height of the UI game object doesn't cause the Vertical Layout Group to update if the UI game object doesn't have an image component enabled

Reproduced in 5.5.4p2, 5.6.3p1, 2017.1.0p5, 2017.2.0b6, 2017.2.0b8, 2017.3.0a5

Comments (5)

  1. SunSailor

    Dec 01, 2023 21:09

    Can confirm this false behaviour still in Unity 2022.3.12f1.

  2. narger

    Jan 23, 2021 10:27

    Btw thanks for the workaround @Davemeta

  3. narger

    Jan 23, 2021 10:26

    Still happening in Unity 2020.2.1f1, i had to add an empty image component to each of my panels root.

    But hey, won't fix!

  4. davemeta

    Apr 15, 2020 20:17

    Maybe the developers can explain why this is marked as "won't fix?" How is this intended to be used?

  5. davemeta

    Apr 15, 2020 20:16

    Still happens in Unity 2019... it also does not work with a LayoutElement attached. I would expect a RectTransform by itself should work, but it doesn't

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.