diff options
author | FrHun <28605587+frhun@users.noreply.github.com> | 2022-05-10 23:33:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-06-30 11:53:50 +0200 |
commit | 307d113594dd7baa6f08ca4b58bf9f181f71fc08 (patch) | |
tree | ee942ff54344dbc02f2bb252c3337f080018e06a /Userland/Applications/Spreadsheet | |
parent | fddd2bf6ff8d51f686627bb6a7f571a6d1adddc6 (diff) | |
download | serenity-307d113594dd7baa6f08ca4b58bf9f181f71fc08.zip |
Spreadsheet: Make conditional-formatting condition-list scrollable
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r-- | Userland/Applications/Spreadsheet/CellTypeDialog.cpp | 4 | ||||
-rw-r--r-- | Userland/Applications/Spreadsheet/CondFormatting.gml | 7 |
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 { |