The protocol config view now adds some glue at the bottom.

* This makes all boxes fill the complete height of the window.
* The SMTP add-on did that itself which makes no sense.
This commit is contained in:
Axel Dörfler 2012-11-27 00:15:02 +01:00
parent 4235da3061
commit fa587d2956
2 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@
#include <GridLayout.h>
#include <MailFilter.h>
#include <MenuField.h>
#include <SpaceLayoutItem.h>
#include <TextControl.h>
#include <FileConfigView.h>
@ -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);
}

View File

@ -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();
}