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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user