Fix for bug #20107 [DOGFOOD] typing in the body causes body to scroll to top

and     bug #19541 [DOGFOOD] Browser jumps to top of page seconds after
                    scrolling down
Modified nsScrollPortFrame::Reflow() to pass NS_FRAME_NO_MOVE_VIEW when
reflowing it's kidFrame.

r=evaughan@netscape.com
This commit is contained in:
kin%netscape.com 1999-11-30 23:18:47 +00:00
parent f3d61a6164
commit 5a272bb01f

View File

@ -450,7 +450,7 @@ nsScrollPortFrame::Reflow(nsIPresContext* aPresContext,
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
border.left, border.top, 0, aStatus);
border.left, border.top, NS_FRAME_NO_MOVE_VIEW, aStatus);
NS_ASSERTION(NS_FRAME_IS_COMPLETE(aStatus), "bad status");
CalculateChildTotalSize(kidFrame, kidDesiredSize);
@ -481,7 +481,7 @@ nsScrollPortFrame::Reflow(nsIPresContext* aPresContext,
aDesiredSize.height += border.top + border.bottom;
FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, x, y, 0);
FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, x, y, NS_FRAME_NO_MOVE_VIEW);
//printf("width=%d, height=%d\n", kidDesiredSize.width, kidDesiredSize.height);