mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
Userland: Use Widget::add_spacer() everywhere
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 18:38:54 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/9561ec15f4 Pull-request: https://github.com/SerenityOS/serenity/pull/17495 Reviewed-by: https://github.com/awesomekling ✅
@@ -104,7 +104,7 @@ void InputBox::build()
|
||||
button_container_inner.set_layout<HorizontalBoxLayout>();
|
||||
button_container_inner.set_preferred_height(SpecialDimension::Fit);
|
||||
button_container_inner.layout()->set_spacing(6);
|
||||
button_container_inner.layout()->add_spacer();
|
||||
button_container_inner.add_spacer().release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_ok_button = button_container_inner.add<DialogButton>();
|
||||
m_ok_button->set_text(String::from_utf8_short_string("OK"sv));
|
||||
|
||||
Reference in New Issue
Block a user