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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user