A solution for the size issues

This commit is contained in:
2025-01-27 20:14:02 +00:00
parent 57a76bbe27
commit 09bb3bed37
2 changed files with 19 additions and 13 deletions

View File

@@ -3,21 +3,26 @@ import { FileTab } from "./file-tab.slint";
import { TabWidget } from "std-widgets.slint";
export component MainWindow inherits Window {
min-width: vram_tab.width;
min-height: vram_tab.height;
min-width: tab_widget.width;
min-height: tab_widget.height;
tab_widget := TabWidget {
x: 0px;
y: 0px;
width: tab.width;
height: tab.height;
TabWidget {
current-index: 1;
file_tab := Tab {
title: "File Bah" + root.min-width/1px;
Tab {
title: "File Bah";
FileTab {
x: 0px;
y: 0px;
}
}
vram_tab := Tab {
test := Tab {
title: "VRAM Layout";
MainTab {
tab := MainTab {
x: 0px;
y: 0px;
}