diff --git a/src/add-ons/mail_daemon/outbound_protocols/smtp/ConfigView.cpp b/src/add-ons/mail_daemon/outbound_protocols/smtp/ConfigView.cpp index 01c472bd76..c66ccd9fb3 100644 --- a/src/add-ons/mail_daemon/outbound_protocols/smtp/ConfigView.cpp +++ b/src/add-ons/mail_daemon/outbound_protocols/smtp/ConfigView.cpp @@ -11,7 +11,6 @@ #include #include #include -#include #include #include @@ -73,8 +72,6 @@ SMTPConfigView::SMTPConfigView(const BMailAccountSettings& settings) Layout()->AddView(fFileView, 0, Layout()->CountRows(), Layout()->CountColumns()); - Layout()->AddItem(BSpaceLayoutItem::CreateGlue(), 0, Layout()->CountRows()); - Layout()->SetRowWeight(Layout()->CountRows() - 1, 1.0f); } diff --git a/src/preferences/mail/ConfigViews.cpp b/src/preferences/mail/ConfigViews.cpp index 05c66f7408..10d3223422 100644 --- a/src/preferences/mail/ConfigViews.cpp +++ b/src/preferences/mail/ConfigViews.cpp @@ -147,7 +147,8 @@ ProtocolSettingsView::ProtocolSettingsView(const entry_ref& ref, BLayoutBuilder::Group<>(contents, B_VERTICAL) .SetInsets(B_USE_DEFAULT_SPACING) - .Add(view); + .Add(view) + .AddGlue(); }