fluent TabWidget: ensure the minimum width is the one of the tabbar

This is what the native style does

Fixes #1363
This commit is contained in:
Olivier Goffart 2022-06-27 10:06:12 +02:00
parent f0e178a1a4
commit a2484cfc64

View file

@ -346,7 +346,7 @@ export TabWidgetImpl := Rectangle {
property <int> current-focused;
preferred-width: content-min-width;
min-width: content-min-width;
min-width: max(content-min-width, tabbar-preferred-width);
preferred-height: content-min-height + tabbar-preferred-height;
min-height: content-min-height + tabbar-preferred-height;
}