Imported ContainerWindow.cpp 1.39 from OpenTracker repository.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18993 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-10-03 22:43:20 +00:00
parent 0d01edbaba
commit 784166f253
+2 -2
View File
@@ -1328,9 +1328,9 @@ BContainerWindow::ResizeToFit()
MoveTo(frame.LeftTop());
PoseView()->DisableScrollBars();
if (PoseView()->Bounds().bottom > extent.bottom)
if (PoseView()->Bounds().bottom > extent.bottom && PoseView()->Bounds().top < 0)
PoseView()->ScrollBy(0, extent.bottom - PoseView()->Bounds().bottom);
if (PoseView()->Bounds().right > extent.right)
if (PoseView()->Bounds().right > extent.right && PoseView()->Bounds().left < 0)
PoseView()->ScrollBy(extent.right - PoseView()->Bounds().right, 0);
PoseView()->UpdateScrollRange();