* fix coding style
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28408 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1088,13 +1088,13 @@ BContainerWindow::FrameResized(float, float)
|
|||||||
BPoint scroll(B_ORIGIN);
|
BPoint scroll(B_ORIGIN);
|
||||||
if (offsetX < 0 && PoseView()->Bounds().right > extent.right
|
if (offsetX < 0 && PoseView()->Bounds().right > extent.right
|
||||||
&& Bounds().Width() > fPreviousBounds.Width())
|
&& Bounds().Width() > fPreviousBounds.Width())
|
||||||
scroll.x =
|
scroll.x
|
||||||
max_c(fPreviousBounds.Width() - Bounds().Width(), offsetX);
|
= max_c(fPreviousBounds.Width() - Bounds().Width(), offsetX);
|
||||||
|
|
||||||
if (offsetY < 0 && PoseView()->Bounds().bottom > extent.bottom
|
if (offsetY < 0 && PoseView()->Bounds().bottom > extent.bottom
|
||||||
&& Bounds().Height() > fPreviousBounds.Height())
|
&& Bounds().Height() > fPreviousBounds.Height())
|
||||||
scroll.y =
|
scroll.y
|
||||||
max_c(fPreviousBounds.Height() - Bounds().Height(), offsetY);
|
= max_c(fPreviousBounds.Height() - Bounds().Height(), offsetY);
|
||||||
|
|
||||||
if (scroll != B_ORIGIN)
|
if (scroll != B_ORIGIN)
|
||||||
PoseView()->ScrollBy(scroll.x, scroll.y);
|
PoseView()->ScrollBy(scroll.x, scroll.y);
|
||||||
|
|||||||
Reference in New Issue
Block a user