summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet
diff options
context:
space:
mode:
authorFrHun <28605587+frhun@users.noreply.github.com>2022-05-10 23:33:11 +0200
committerAndreas Kling <kling@serenityos.org>2022-06-30 11:53:50 +0200
commit307d113594dd7baa6f08ca4b58bf9f181f71fc08 (patch)
treeee942ff54344dbc02f2bb252c3337f080018e06a /Userland/Applications/Spreadsheet
parentfddd2bf6ff8d51f686627bb6a7f571a6d1adddc6 (diff)
downloadserenity-307d113594dd7baa6f08ca4b58bf9f181f71fc08.zip
Spreadsheet: Make conditional-formatting condition-list scrollable
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r--Userland/Applications/Spreadsheet/CellTypeDialog.cpp4
-rw-r--r--Userland/Applications/Spreadsheet/CondFormatting.gml7
2 files changed, 8 insertions, 3 deletions
diff --git a/Userland/Applications/Spreadsheet/CellTypeDialog.cpp b/Userland/Applications/Spreadsheet/CellTypeDialog.cpp
index 1d70e5eca4..c3d6a22779 100644
--- a/Userland/Applications/Spreadsheet/CellTypeDialog.cpp
+++ b/Userland/Applications/Spreadsheet/CellTypeDialog.cpp
@@ -427,7 +427,9 @@ ConditionView::~ConditionView()
ConditionsView::ConditionsView()
{
- set_layout<GUI::VerticalBoxLayout>().set_spacing(2);
+ auto& layout = set_layout<GUI::VerticalBoxLayout>();
+ layout.set_spacing(4);
+ layout.set_margins({ 6 });
}
void ConditionsView::set_formats(Vector<ConditionalFormat>* formats)
diff --git a/Userland/Applications/Spreadsheet/CondFormatting.gml b/Userland/Applications/Spreadsheet/CondFormatting.gml
index 62c8a2e249..59ca4f004e 100644
--- a/Userland/Applications/Spreadsheet/CondFormatting.gml
+++ b/Userland/Applications/Spreadsheet/CondFormatting.gml
@@ -6,8 +6,11 @@
spacing: 4
}
- @Spreadsheet::ConditionsView {
- name: "conditions_view"
+ @GUI::ScrollableContainerWidget {
+ should_hide_unnecessary_scrollbars: true
+ content_widget: @Spreadsheet::ConditionsView {
+ name: "conditions_view"
+ }
}
@GUI::Widget {