From 73239809437372523a658991b4579ccfa3a5b2e5 Mon Sep 17 00:00:00 2001 From: "Bruno G. Albuquerque" Date: Sun, 22 Feb 2009 14:31:03 +0000 Subject: [PATCH] - Fix displaying of the From: popup menu when composing a new message. This actually show a bug in BPopUpMenu. It seesm to think that its size includes the arrow at its right size and so it draws the menu item string over it. Stippi? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29285 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mail/Header.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/mail/Header.cpp b/src/apps/mail/Header.cpp index 2ca81a1b0f..b395c3d0d1 100644 --- a/src/apps/mail/Header.cpp +++ b/src/apps/mail/Header.cpp @@ -301,6 +301,8 @@ THeaderView::THeaderView(BRect rect, BRect windowRect, bool incoming, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP); encodingField->SetDivider(encodingField->StringWidth(ENCODING_TEXT) + 5); AddChild(encodingField); + + field = encodingField; // And now the "from account" pop-up menu, on the left side, taking the // remaining space. @@ -349,6 +351,7 @@ THeaderView::THeaderView(BRect rect, BRect windowRect, bool incoming, } r.Set(SEPARATOR_MARGIN, y - 2, field->Frame().left - SEPARATOR_MARGIN, y + menuFieldHeight); + r.PrintToStream(); field = new BMenuField(r, "account", FROM_TEXT, fAccountMenu, true /* fixedSize */, B_FOLLOW_TOP | B_FOLLOW_LEFT_RIGHT,