From ac53f5c1f1195946ea4b9d32f0462dcf397c5bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 10 Feb 2009 23:36:56 +0000 Subject: [PATCH] * place the Encoding before the To. this fixes bug #1206 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29182 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mail/Header.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/mail/Header.cpp b/src/apps/mail/Header.cpp index 08c2979bb5..2ca81a1b0f 100644 --- a/src/apps/mail/Header.cpp +++ b/src/apps/mail/Header.cpp @@ -295,12 +295,12 @@ THeaderView::THeaderView(BRect rect, BRect windowRect, bool incoming, r.Set(windowRect.Width() - widestCharacterSet - StringWidth(ENCODING_TEXT) - 2 * SEPARATOR_MARGIN, y - 2, windowRect.Width() - SEPARATOR_MARGIN, y + menuFieldHeight); - field = new BMenuField (r, "encoding", ENCODING_TEXT, fEncodingMenu, + BMenuField *encodingField = new BMenuField (r, "encoding", ENCODING_TEXT, fEncodingMenu, true /* fixedSize */, B_FOLLOW_TOP | B_FOLLOW_RIGHT, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP); - field->SetDivider(field->StringWidth(ENCODING_TEXT) + 5); - AddChild(field); + encodingField->SetDivider(encodingField->StringWidth(ENCODING_TEXT) + 5); + AddChild(encodingField); // And now the "from account" pop-up menu, on the left side, taking the // remaining space. @@ -353,7 +353,7 @@ THeaderView::THeaderView(BRect rect, BRect windowRect, bool incoming, true /* fixedSize */, B_FOLLOW_TOP | B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP); - AddChild(field); + AddChild(field, encodingField); field->SetDivider(x - 12 - SEPARATOR_MARGIN + kMenuFieldDividerOffset); field->SetAlignment(B_ALIGN_RIGHT); #ifndef __HAIKU__