mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
Userland: Specify margins and spacing in the GUI::Layout constructor
This commit is contained in:
@@ -43,9 +43,7 @@ MemoryStatsWidget::MemoryStatsWidget(GraphWidget* graph)
|
||||
|
||||
set_fixed_height(110);
|
||||
|
||||
set_layout<GUI::VerticalBoxLayout>();
|
||||
layout()->set_margins({ 8, 0, 0 });
|
||||
layout()->set_spacing(3);
|
||||
set_layout<GUI::VerticalBoxLayout>(GUI::Margins { 8, 0, 0 }, 3);
|
||||
|
||||
auto build_widgets_for_label = [this](DeprecatedString const& description) -> RefPtr<GUI::Label> {
|
||||
auto& container = add<GUI::Widget>();
|
||||
|
||||
Reference in New Issue
Block a user