From eaa910c505ebad0449955c62daff9eb954b730f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 27 May 2011 15:28:42 +0000 Subject: [PATCH] * 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 --- src/apps/showimage/ShowImageView.cpp | 1 - src/apps/showimage/ShowImageWindow.cpp | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index e73e2dc5b1..f569dee833 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -491,7 +491,6 @@ void ShowImageView::SetHideIdlingCursor(bool hide) { fHideCursor = hide; - FitToBounds(); } diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index 26a5957048..906c55d2b1 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -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(); }