* We obviously need to relayout manually, as it looks like the view is not
layouted correctly after the resize. This fixes bug #7577. Ingo, is this the desired behaviour of the layout engine, and if so, what's the rationale behind it? * Removed extraneous FitToBounds() call in ShowImageView::SetHideIdlingCursor(); it doesn't belong there. +alpha git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41772 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -491,7 +491,6 @@ void
|
|||||||
ShowImageView::SetHideIdlingCursor(bool hide)
|
ShowImageView::SetHideIdlingCursor(bool hide)
|
||||||
{
|
{
|
||||||
fHideCursor = hide;
|
fHideCursor = hide;
|
||||||
FitToBounds();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1294,6 +1294,10 @@ ShowImageWindow::_ToggleFullScreen()
|
|||||||
|
|
||||||
fImageView->SetHideIdlingCursor(fFullScreen);
|
fImageView->SetHideIdlingCursor(fFullScreen);
|
||||||
fImageView->SetShowCaption(fFullScreen && fShowCaption);
|
fImageView->SetShowCaption(fFullScreen && fShowCaption);
|
||||||
|
|
||||||
|
GetLayout()->Relayout(true);
|
||||||
|
// We need to manually relayout here, as the views would be relayouted
|
||||||
|
// later, and FitToBounds() would still have the wrong size
|
||||||
fImageView->FitToBounds();
|
fImageView->FitToBounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user