This commit is contained in:
Peter Nelson 2024-04-23 20:56:22 +02:00 committed by GitHub
commit a362b740bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1381,7 +1381,8 @@ public:
child_wid->current_x = child_wid->smallest_x;
}
}
_toolbar_width = nbuttons * this->smallest_x;
nbuttons--; // Exclude the switcher button which is not displayed when the toolbar fits the screen.
_toolbar_width = nbuttons * this->smallest_x + this->spacers * this->smallest_x / 2;
}
void AssignSizePosition(SizingType sizing, int x, int y, uint given_width, uint given_height, bool rtl) override