Spreadsheet: Make conditional-formatting condition-list scrollable

This commit is contained in:
FrHun 2022-05-10 23:33:11 +02:00 committed by Andreas Kling
parent fddd2bf6ff
commit 307d113594
Notes: sideshowbarker 2024-07-17 18:08:55 +09:00
2 changed files with 8 additions and 3 deletions

View file

@ -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)

View file

@ -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 {