BMenuItem also draws ctrl bitmap if needed, BTextView::AutoResize implemented more correctly

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16577 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-03-03 19:31:09 +00:00
parent da2e259d76
commit 2c11ec31c8
5 changed files with 41 additions and 23 deletions
+1 -1
View File
@@ -1816,7 +1816,7 @@ BMenu::UpdateWindowViewSize(bool upWind)
window->ResizeTo(Bounds().Width() + 2, Bounds().Height() + 2);
else {
CacheFontInfo();
window->ResizeTo(StringWidth("<empty>") + 4, fFontHeight + 6);
window->ResizeTo(StringWidth(kEmptyMenuLabel) + 5, fFontHeight + 6);
}
window->MoveTo(frame.LeftTop());
}