mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
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:
parent
f0e178a1a4
commit
a2484cfc64
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue