Skip to content

Commit

Permalink
Merge pull request #604 from Shallowmallow/rows
Browse files Browse the repository at this point in the history
Adding layout-rows for horizontal-grid
  • Loading branch information
ianharrigan authored May 5, 2024
2 parents ba4be06 + ea87545 commit 6632f2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions haxe/ui/layouts/HorizontalGridLayout.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ class HorizontalGridLayout extends Layout {
super();
}

public override function applyProperties(props:Map<String, Any>) {
if (props != null) {
if (props.exists("rows") && props.get("rows") != null) {
this.rows = props.get("rows");
}
}
}

private override function get_usableSize():Size {
var size:Size = super.get_usableSize();
var columnWidths:Array<Float> = calcColumnWidths(size, false);
Expand Down

0 comments on commit 6632f2c

Please sign in to comment.