Don't resize to preferred height if fixed size, BeOS didn't

This commit is contained in:
John Scipione
2013-05-30 00:05:14 -04:00
parent 17aed1bfc8
commit 9af9f5150d
+5 -3
View File
@@ -963,9 +963,11 @@ BMenuField::InitObject2()
{
CALLED();
float height;
fMenuBar->GetPreferredSize(NULL, &height);
fMenuBar->ResizeTo(_MenuBarWidth(), height);
if (!fFixedSizeMB) {
float height;
fMenuBar->GetPreferredSize(NULL, &height);
fMenuBar->ResizeTo(_MenuBarWidth(), height);
}
TRACE("frame(%.1f, %.1f, %.1f, %.1f) (%.2f, %.2f)\n",
fMenuBar->Frame().left, fMenuBar->Frame().top,