Revert "Revert "Deskbar: eliminate infinite loop bug""
This reverts commit 032a3f45f7
.
This commit is contained in:
parent
d3499f24a7
commit
037df92938
src/apps/deskbar
@ -252,7 +252,6 @@ TBarWindow::FrameResized(float width, float height)
|
||||
if (fBarView->Vertical() && fBarView->ExpandoState())
|
||||
fBarView->ExpandoMenuBar()->SetMaxContentWidth(width);
|
||||
|
||||
fBarView->UpdatePlacement();
|
||||
Unlock();
|
||||
}
|
||||
}
|
||||
|
@ -113,6 +113,15 @@ TExpandoMenuBar::TExpandoMenuBar(TBarView* barView, bool vertical)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TExpandoMenuBar::AllAttached()
|
||||
{
|
||||
BMenuBar::AllAttached();
|
||||
|
||||
SizeWindow(0);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TExpandoMenuBar::AttachedToWindow()
|
||||
{
|
||||
|
@ -63,6 +63,7 @@ class TExpandoMenuBar : public BMenuBar {
|
||||
public:
|
||||
TExpandoMenuBar(TBarView* barView, bool vertical);
|
||||
|
||||
virtual void AllAttached();
|
||||
virtual void AttachedToWindow();
|
||||
virtual void DetachedFromWindow();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user