When scrolling to form controls on focus, make sure to flush out pending

reflows first.  Bug 245133, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@157195 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-05-31 20:56:55 +00:00
parent 12dd10eae3
commit 2ce7c13354
5 changed files with 11 additions and 7 deletions

View File

@@ -4319,6 +4319,9 @@ PresShell::ScrollFrameIntoView(nsIFrame *aFrame,
}
}
// Flush out pending reflows to make sure we scroll to the right place
mDocument->FlushPendingNotifications(Flush_OnlyReflow);
// This is a two-step process.
// Step 1: Find the bounds of the rect we want to scroll into view. For
// example, for an inline frame we may want to scroll in the whole