Apply old patch by AnevilYak, fix BMenuField border drawing

Should have been part of the previous commit, sorry
This commit is contained in:
Alexandre Deckner 2012-07-03 21:43:53 +02:00
parent 7f21f81f4f
commit 08cada49a6

View File

@ -59,14 +59,14 @@ FontSelectionView::FontSelectionView(const char* name, const char* label,
fFontsMenu = new BPopUpMenu("font menu");
// font menu
fFontsMenuField = new BMenuField("fonts", label, fFontsMenu, NULL);
fFontsMenuField = new BMenuField("fonts", label, fFontsMenu, B_WILL_DRAW);
fFontsMenuField->SetFont(be_bold_font);
// styles menu, if desired
if (separateStyles) {
fStylesMenu = new BPopUpMenu("styles menu");
fStylesMenuField = new BMenuField("styles", B_TRANSLATE("Style:"),
fStylesMenu, NULL);
fStylesMenu, B_WILL_DRAW);
} else {
fStylesMenu = NULL;
fStylesMenuField = NULL;
@ -74,7 +74,7 @@ FontSelectionView::FontSelectionView(const char* name, const char* label,
// size menu
fSizesMenuField = new BMenuField("size", B_TRANSLATE("Size:"), fSizesMenu,
NULL);
B_WILL_DRAW);
fSizesMenuField->SetAlignment(B_ALIGN_RIGHT);
// preview