Skip to content

Commit

Permalink
use componentHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Dec 19, 2023
1 parent 4fe2d75 commit 83f1c19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions haxe/ui/components/TabBar.hx
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ class TabBarLayout extends DefaultLayout {

var max:Float = 0;
for (button in container.childComponents) {
button.syncComponentValidation();
if (button.height > max) {
max = button.height;
button.validateNow();
if (button.componentHeight > max) {
max = button.componentHeight;
}
}
if (max > 0) {
for (button in container.childComponents) {
button.height = max;
button.componentHeight = max;
}
}

Expand Down

0 comments on commit 83f1c19

Please sign in to comment.