mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
f3d61a6164
commit
5a272bb01f
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user