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