Closed Mushymato closed 3 weeks ago
Fixes issue #20
Test view:
<frame layout="640px 640px" background={@Mods/StardewUI/Sprites/ControlBorder} margin="0,16,0,0" padding="32,24"> <scrollable peeking="128"> <grid layout="stretch content" item-layout="count: 6" horizontal-item-alignment="middle"> <image layout="stretch content" *repeat={Items} sprite={this} tooltip={:DisplayName} focusable="true" layout="64px 64px"/> </grid> </scrollable> </frame>
Without the change in this PR, the last row becomes aligned only if it has exactly same number of items as row size.
Fixes issue #20
Test view:
Without the change in this PR, the last row becomes aligned only if it has exactly same number of items as row size.