|
Post by letsketch on May 5, 2020 8:43:50 GMT
Hey all, Is there a simple way to centre align cells in a horizontal scroller? Can see escroller overrides my container & cell "top middle" transform alignment with an "Upper Left" Horizontal Layout Group setting. Is there a config value I can set to align cells to where I want? eg: "Upper Center" Ta! www.youtube.com/watch?v=FZRjxXVSpxw
|
|
|
Post by echo17 on May 5, 2020 13:56:37 GMT
The scroller has to set the layout like it does so that it can virtualize the entire set of data without having to display it all at once. You can get around this, however, by nesting your own controls inside the cell and setting the alignment there. So your cell structure might look like:
CellView |- YourParentControl |- ChildControlA |- ChildControlB |- ChildControlC
Where you can make the children inside YourParentControl align however you would like. This is just a simple example, but you can make some complex alignments by nesting, anchoring, and offsetting your control hierarchy.
Note: be sure you are setting the scroll direction to Horizontal in the EnhancedScroller component.
|
|