Adjust sizing of the AboutSlint widget

This commit is contained in:
Olivier Goffart 2023-05-09 12:02:27 +02:00 committed by Olivier Goffart
parent 45a6460aa2
commit eb88a9ac9c
2 changed files with 6 additions and 4 deletions

View file

@ -21,8 +21,7 @@ This element displays a "Made with Slint" badge.
```slint ```slint
import { AboutSlint } from "std-widgets.slint"; import { AboutSlint } from "std-widgets.slint";
export component Example inherits Window { export component Example inherits Window {
width: 128px; height: 175px;
height: 128px;
AboutSlint { AboutSlint {
} }
} }

View file

@ -86,9 +86,12 @@ export component TextEdit inherits ScrollView {
} }
} }
} }
export component AboutSlint { export component AboutSlint {
VerticalLayout { preferred-height: 100%;
preferred-width: 100%;
min-height: lay.min-height;
min-width: lay.min-width;
lay := VerticalLayout {
padding: 12px; padding: 12px;
spacing: 8px; spacing: 8px;
alignment: start; alignment: start;