Search Issue Tracker

Fixed in 4.6.X

Votes

0

Found in

4.6.0b17

Issue ID

628160

Regression

No

Grid Layout Group does not work correctly if the Start Axis is set to Vertical

uGUI

-

To reproduce the bug:

1. Open the attached project
2. Open 'Main' scene
3. Press play
4. Notice that the Grid Layout Group with Vertical Start Axis does not work correctly. When elements are addeed, it first fills up the first row (exactly like horizontal), and as soon as it has no more space, it switches to a vertical-first layout

Comments (7)

  1. Flavelius

    Mar 31, 2022 09:44

    This is still an issue in 2020.3.30f1 and it's even more buggy. When adding a LayoutElement and forcing vertical expansion (flexible height 1), elements do actually wrap vertically first (not a workaround as it has other sideeffects), but the component still reserves horizontal space as if they didn't..

  2. Carrotpie

    Mar 18, 2020 13:45

    In version 2019.2.6f1 Observed similar behaviour with Vertical "Start Axis". No matter which option is selected - always fills Vertically.

  3. shoopscooper

    Sep 30, 2019 19:13

    The same thing Iron27 said for Unity 2019.2.4f1: It always places buttons vertically even when horizontal is picked.

  4. Gohloum

    Sep 19, 2019 18:32

    This issue says fixed, but I am experiencing this exact problem in 2019.x. Regardless of row count, column count, fixed size, etc., It always lays out Horizontal.

  5. Tatyana_Dobrodey

    Nov 01, 2018 13:07

    repeated in 2018.2.5

  6. TheDemiurge

    Jan 13, 2018 00:35

    Broken in 2017.1.1f1....

  7. Iron27

    Sep 10, 2017 22:14

    I'm now experiencing the exact opposite of this bug in Unity 5.50f3

    Start Axis is set to Horizontal is filling an entire column before adding to a row. Horizontal works as intended.

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.