ShowImage: Using the up and down arrow to change images from a tracker folder,

and loading an image bigger than the current window size didn't get the window enlarged.

exceptions: the window doesn't get resized by this mean if you check the Shrink to window or Zoom to window settings.

Fixes ticket #4273.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32502 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre
2009-08-19 02:20:10 +00:00
parent bc6272feed
commit 29c4d5a983
+3
View File
@@ -630,6 +630,9 @@ ShowImageWindow::MessageReceived(BMessage *message)
if (messageProvidesSize) {
_UpdateResizerWindow(fWidth, fHeight);
if (!fImageView->GetZoomToBounds()
&& !fImageView->GetShrinkToBounds())
WindowRedimension(fImageView->GetBitmap());
}
fStatusView->SetText(status);