1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:17:44 +00:00

FontEditor: Correct GroupBox height

Font Metadata's GroupBox height was off by an _unsightly_ 2 pixels.
Now we make heights explicit for all child widgets and let shrink_to_fit
automatically calculate things.
This commit is contained in:
thankyouverycool 2022-01-09 12:45:54 -05:00 committed by Andreas Kling
parent 24bd2a427c
commit 7d7f683715

View file

@ -77,13 +77,15 @@
@GUI::GroupBox { @GUI::GroupBox {
name: "font_metadata_groupbox" name: "font_metadata_groupbox"
title: "Metadata" title: "Metadata"
fixed_height: 220 shrink_to_fit: true
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
margins: [6, 6, 6, 6] margins: [6, 6, 6, 6]
} }
@GUI::Widget { @GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
} }
@ -100,6 +102,8 @@
} }
@GUI::Widget { @GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
} }
@ -116,6 +120,8 @@
} }
@GUI::Widget { @GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
} }
@ -133,6 +139,8 @@
} }
@GUI::Widget { @GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
} }
@ -150,6 +158,8 @@
} }
@GUI::Widget { @GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
} }
@ -168,6 +178,8 @@
} }
@GUI::Widget { @GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
} }
@ -185,6 +197,8 @@
} }
@GUI::Widget { @GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
} }