fix: column flow layout wrongly calculated height of second and subsequent columns when used with more than 2 columns.
* discovered while playing with the column flow layout in asset branch.
This commit is contained in:
parent
ed36c625ee
commit
b876ca5611
@ -1960,6 +1960,7 @@ static void ui_litem_estimate_column_flow(uiLayout *litem)
|
||||
x += maxw + litem->space;
|
||||
maxw = 0;
|
||||
y = 0;
|
||||
emy = 0; /* need to reset height again for next column */
|
||||
col++;
|
||||
}
|
||||
}
|
||||
@ -2010,6 +2011,7 @@ static void ui_litem_layout_column_flow(uiLayout *litem)
|
||||
if (col < flow->totcol - 1 && emy <= -emh) {
|
||||
x += itemw + style->columnspace;
|
||||
y = litem->y;
|
||||
emy = 0; /* need to reset height again for next column */
|
||||
col++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user