mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Spreadsheet: Make conditional-formatting condition-list scrollable
This commit is contained in:
parent
fddd2bf6ff
commit
307d113594
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/frhun Commit: https://github.com/SerenityOS/serenity/commit/307d113594 Pull-request: https://github.com/SerenityOS/serenity/pull/14426 Reviewed-by: https://github.com/sppmacd
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…
Reference in a new issue