summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet
diff options
context:
space:
mode:
authorFrHun <28605587+frhun@users.noreply.github.com>2022-02-22 19:59:44 +0100
committerAndreas Kling <kling@serenityos.org>2022-06-30 11:51:25 +0200
commit93112458b8e3628de01185239fd95ee90cc6278b (patch)
tree5c6f2f6065f6240c68ccd51d0c00c74137017d3b /Userland/Applications/Spreadsheet
parent39c8590720074baaf7556826ca417aa36cc032ff (diff)
downloadserenity-93112458b8e3628de01185239fd95ee90cc6278b.zip
Spreadsheet: Use new layout system
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r--Userland/Applications/Spreadsheet/CellTypeDialog.cpp4
-rw-r--r--Userland/Applications/Spreadsheet/CondFormatting.gml2
-rw-r--r--Userland/Applications/Spreadsheet/CondView.gml9
3 files changed, 8 insertions, 7 deletions
diff --git a/Userland/Applications/Spreadsheet/CellTypeDialog.cpp b/Userland/Applications/Spreadsheet/CellTypeDialog.cpp
index a450db4758..1d70e5eca4 100644
--- a/Userland/Applications/Spreadsheet/CellTypeDialog.cpp
+++ b/Userland/Applications/Spreadsheet/CellTypeDialog.cpp
@@ -281,7 +281,7 @@ void CellTypeDialog::setup_tabs(GUI::TabWidget& tabs, Vector<Position> const& po
auto& foreground_container = static_formatting_container.add<GUI::Widget>();
foreground_container.set_layout<GUI::HorizontalBoxLayout>();
foreground_container.layout()->set_margins({ 4, 0, 0 });
- foreground_container.set_shrink_to_fit(true);
+ foreground_container.set_preferred_height(GUI::SpecialDimension::Fit);
auto& foreground_label = foreground_container.add<GUI::Label>();
foreground_label.set_text_alignment(Gfx::TextAlignment::CenterLeft);
@@ -301,7 +301,7 @@ void CellTypeDialog::setup_tabs(GUI::TabWidget& tabs, Vector<Position> const& po
auto& background_container = static_formatting_container.add<GUI::Widget>();
background_container.set_layout<GUI::HorizontalBoxLayout>();
background_container.layout()->set_margins({ 4, 0, 0 });
- background_container.set_shrink_to_fit(true);
+ background_container.set_preferred_height(GUI::SpecialDimension::Fit);
auto& background_label = background_container.add<GUI::Label>();
background_label.set_text_alignment(Gfx::TextAlignment::CenterLeft);
diff --git a/Userland/Applications/Spreadsheet/CondFormatting.gml b/Userland/Applications/Spreadsheet/CondFormatting.gml
index 934573a1b8..62c8a2e249 100644
--- a/Userland/Applications/Spreadsheet/CondFormatting.gml
+++ b/Userland/Applications/Spreadsheet/CondFormatting.gml
@@ -11,7 +11,7 @@
}
@GUI::Widget {
- shrink_to_fit: true
+ preferred_height: "fit"
layout: @GUI::HorizontalBoxLayout {
spacing: 10
}
diff --git a/Userland/Applications/Spreadsheet/CondView.gml b/Userland/Applications/Spreadsheet/CondView.gml
index f532d406dd..41a0cdcc7f 100644
--- a/Userland/Applications/Spreadsheet/CondView.gml
+++ b/Userland/Applications/Spreadsheet/CondView.gml
@@ -1,8 +1,9 @@
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {}
+ preferred_height: "fit"
@GUI::Widget {
- shrink_to_fit: true
+ preferred_height: "fit"
layout: @GUI::HorizontalBoxLayout {}
@GUI::Label {
@@ -12,14 +13,14 @@
@GUI::TextEditor {
name: "formula_editor"
- fixed_height: 25
+ fixed_height: 32
tooltip: "Use 'value' to refer to the current cell's value"
font_type: "FixedWidth"
}
}
@GUI::Widget {
- shrink_to_fit: true
+ preferred_height: "fit"
layout: @GUI::HorizontalBoxLayout {}
@GUI::Label {
@@ -33,7 +34,7 @@
}
@GUI::Widget {
- shrink_to_fit: true
+ preferred_height: "fit"
layout: @GUI::HorizontalBoxLayout {}
@GUI::Label {