diff --git a/Userland/Libraries/LibGUI/InputBox.cpp b/Userland/Libraries/LibGUI/InputBox.cpp index 0f98aa23b22..b7b2f02ed41 100644 --- a/Userland/Libraries/LibGUI/InputBox.cpp +++ b/Userland/Libraries/LibGUI/InputBox.cpp @@ -128,47 +128,35 @@ void InputBox::on_done(ExecResult result) ErrorOr InputBox::build() { auto main_widget = TRY(set_main_widget()); - TRY(main_widget->try_set_layout(4, 6)); + TRY(main_widget->try_set_layout(6, 6)); main_widget->set_fill_with_background_color(true); - auto top_container = TRY(main_widget->try_add()); - TRY(top_container->try_set_layout(0, 8)); - - if (m_icon) { - auto image_widget = TRY(top_container->try_add()); - image_widget->set_bitmap(m_icon); - } - - auto input_container = TRY(top_container->try_add()); - auto orientation = m_icon ? Gfx::Orientation::Vertical : Gfx::Orientation::Horizontal; - TRY(input_container->try_set_layout(orientation)); - TRY(input_container->add_spacer()); - if (!m_prompt.is_empty()) { - m_label_container = TRY(input_container->try_add()); - TRY(m_label_container->try_set_layout()); - m_prompt_label = TRY(m_label_container->try_add