* Revert r36316 as there are too many apps broken (Vision, Chart, Tracker Find, etc) in different unexpected ways. I'm sorry for the

trouble :( I'll revisit the change and post a patch with a hopefully better solution soon....


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36795 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ithamar R. Adema
2010-05-11 22:54:00 +00:00
parent 97901ec593
commit 43775be678
+1 -4
View File
@@ -365,10 +365,7 @@ BMenuItem::GetContentSize(float *width, float *height)
// BFont::Height() caches the value locally
MenuPrivate(fSuper).CacheFontInfo();
if (fSubmenu && fSubmenu->IsLabelFromMarked())
fSubmenu->GetPreferredSize(&fCachedWidth, NULL);
else
fCachedWidth = fSuper->StringWidth(fLabel);
fCachedWidth = fSuper->StringWidth(fLabel);
if (width)
*width = (float)ceil(fCachedWidth);