Skip to content

Commit

Permalink
Mail: Set min size in prefs instead of some random number.
Browse files Browse the repository at this point in the history
* Since min/max size of the menu had contradicting values at larger font
  sizes, the layout was confused.
  • Loading branch information
axeld committed Nov 22, 2015
1 parent 04f969a commit 0295da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/mail/Prefs.cpp
Expand Up @@ -223,7 +223,7 @@ TPrefsWindow::TPrefsWindow(BPoint leftTop, BFont* font, int32* level,

fReplyPreambleMenu = _BuildReplyPreambleMenu();
menu = new BMenuField("replyPreamble", NULL, fReplyPreambleMenu);
menu->SetExplicitMaxSize(BSize(27, B_SIZE_UNSET));
menu->SetExplicitMaxSize(BSize(menu->MinSize().width, B_SIZE_UNSET));

mailLayout->AddItem(fReplyPreamble->CreateLabelLayoutItem(), 0, layoutRow);
mailLayout->AddItem(fReplyPreamble->CreateTextViewLayoutItem(), 1,
Expand Down

0 comments on commit 0295da8

Please sign in to comment.