mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Spreadsheet: Make conditional-formatting condition-list scrollable
This commit is contained in:
parent
fddd2bf6ff
commit
307d113594
2 changed files with 8 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue