Make the non-native TabWidget fill the parent size when not in layout

Fix #2683
This commit is contained in:
Olivier Goffart 2023-05-04 07:20:44 +02:00
parent 0726d2272b
commit df2f76a65b
3 changed files with 6 additions and 5 deletions

View file

@ -7,6 +7,7 @@ All notable changes to this project are documented in this file.
- Fixed missing items compilation error in the generated code related to public functions (#2655).
- Added support for Window transparency on supported platform
- Fixed TabWidget not filling the parent in non-native style
### Slint Language

View file

@ -337,7 +337,7 @@ export component GroupBox {
}
}
export component TabWidgetImpl {
export component TabWidgetImpl inherits Rectangle {
out property <length> content-x: 0;
out property <length> content-y: root.tabbar-preferred-height;
out property <length> content-height: root.height - root.tabbar-preferred-height;

View file

@ -4,7 +4,7 @@
import { md } from "md.slint";
export component TabWidgetImpl {
export component TabWidgetImpl inherits Rectangle {
out property <length> content-x: 0;
out property <length> content-y: root.tabbar-preferred-height;
out property <length> content-height: root.height - root.tabbar-preferred-height;