Skip to content

Commit

Permalink
Mail: corrected spacing after window spacing change.
Browse files Browse the repository at this point in the history
* The button panel shouldn't be indented at all.
* The header panel was intented twice, once by the surrounding layout,
  once by its own.
  • Loading branch information
axeld committed Nov 16, 2015
1 parent 3c9d8d6 commit 28da8a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/apps/mail/Header.cpp
Expand Up @@ -402,7 +402,6 @@ THeaderView::THeaderView(bool incoming, bool resending, int32 defaultAccount)

BGridLayout* layout = GridLayout();

layout->SetInsets(B_USE_DEFAULT_SPACING);
if (fIncoming)
layout->SetHorizontalSpacing(0);
layout->SetVerticalSpacing(B_USE_HALF_ITEM_SPACING);
Expand Down
6 changes: 3 additions & 3 deletions src/apps/mail/MailWindow.cpp
Expand Up @@ -557,11 +557,11 @@ TMailWindow::TMailWindow(BRect rect, const char* title, TMailApp* app,

BLayoutBuilder::Group<>(this, B_VERTICAL, 0)
.Add(fMenuBar)
.Add(fToolBar)
.AddGroup(B_VERTICAL, 0)
.Add(fToolBar)
.Add(fHeaderView)
.SetInsets(B_USE_WINDOW_SPACING, 0, B_USE_WINDOW_SPACING, 0)
.End()
.SetInsets(B_USE_WINDOW_SPACING, B_USE_DEFAULT_SPACING)
.End()
.Add(fContentView);

if (to != NULL)
Expand Down

0 comments on commit 28da8a4

Please sign in to comment.