Bug 748991 The Find in Page Dialog does not vertically center the highlighted result like the findbar does r=ehsan.

--HG--
extra : rebase_source : be6e9164df9e943d598db0f4f3f07b266d6bb6f4
This commit is contained in:
Philip Chee 2012-04-27 03:04:33 +08:00
parent 75c324aebc
commit 0c292a1bfc

View File

@ -450,6 +450,7 @@ void nsWebBrowserFind::SetSelectionAndScroll(nsIDOMWindow* aWindow,
selCon->ScrollSelectionIntoView
(nsISelectionController::SELECTION_NORMAL,
nsISelectionController::SELECTION_WHOLE_SELECTION,
nsISelectionController::SCROLL_CENTER_VERTICALLY |
nsISelectionController::SCROLL_SYNCHRONOUS);
}
}