* 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:
Axel Dörfler 2011-05-27 15:28:42 +00:00
parent a23473db54
commit eaa910c505
2 changed files with 4 additions and 1 deletions

View File

@ -491,7 +491,6 @@ void
ShowImageView::SetHideIdlingCursor(bool hide)
{
fHideCursor = hide;
FitToBounds();
}

View File

@ -1294,6 +1294,10 @@ ShowImageWindow::_ToggleFullScreen()
fImageView->SetHideIdlingCursor(fFullScreen);
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();
}