Revert "Revert "Deskbar: eliminate infinite loop bug""

This reverts commit 032a3f45f7.
This commit is contained in:
John Scipione 2017-09-13 15:50:35 -07:00
parent d3499f24a7
commit 037df92938
3 changed files with 10 additions and 1 deletions

View File

@ -252,7 +252,6 @@ TBarWindow::FrameResized(float width, float height)
if (fBarView->Vertical() && fBarView->ExpandoState())
fBarView->ExpandoMenuBar()->SetMaxContentWidth(width);
fBarView->UpdatePlacement();
Unlock();
}
}

View File

@ -113,6 +113,15 @@ TExpandoMenuBar::TExpandoMenuBar(TBarView* barView, bool vertical)
}
void
TExpandoMenuBar::AllAttached()
{
BMenuBar::AllAttached();
SizeWindow(0);
}
void
TExpandoMenuBar::AttachedToWindow()
{

View File

@ -63,6 +63,7 @@ class TExpandoMenuBar : public BMenuBar {
public:
TExpandoMenuBar(TBarView* barView, bool vertical);
virtual void AllAttached();
virtual void AttachedToWindow();
virtual void DetachedFromWindow();