mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:57:35 +00: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()
|
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)
|
void ConditionsView::set_formats(Vector<ConditionalFormat>* formats)
|
||||||
|
|
|
@ -6,8 +6,11 @@
|
||||||
spacing: 4
|
spacing: 4
|
||||||
}
|
}
|
||||||
|
|
||||||
@Spreadsheet::ConditionsView {
|
@GUI::ScrollableContainerWidget {
|
||||||
name: "conditions_view"
|
should_hide_unnecessary_scrollbars: true
|
||||||
|
content_widget: @Spreadsheet::ConditionsView {
|
||||||
|
name: "conditions_view"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue