- Home /
Question by
IlisanVlad · Sep 29, 2018 at 09:27 AM ·
androiduicanvasgroups
Vertical Layout Group elements have huge space between them even with spacing set to 0.
I am making expanding buttons, when I press one of them it expands down and the element below him should move down, the porblem is that Vertical Layout Group makes a huge gap between them and if I set
the spacing to a "-" value and expand a button the element below him just goes back to where he was when I had the gap.
1b.png
(85.1 kB)
Comment
same problem bro! why doesn't anyone answer this question?
It looks weird, yes. Can you select both children and make a screenshot? Also, which version of Unity you are using?
use content size fitter.note that your content and element should be of same size otherwise spacing will continue to remain.add comment if still can't solve it