зеркало из https://github.com/mozilla/gecko-dev.git
Bug 370436 - "Context menu from keyboard for spell checker selects the wrong line" [r=roc]
This commit is contained in:
Родитель
bacd132d67
Коммит
2d9afcd8ae
|
@ -6776,6 +6776,10 @@ PresShell::PrepareToUseCaretPosition(nsIWidget* aEventWidget, nsIntPoint& aTarge
|
|||
aTargetPt.x = presContext->AppUnitsToDevPixels(viewDelta.x + caretCoords.x + caretCoords.width);
|
||||
aTargetPt.y = presContext->AppUnitsToDevPixels(viewDelta.y + caretCoords.y + caretCoords.height);
|
||||
|
||||
// make sure rounding doesn't return a pixel which is outside the caret
|
||||
// (e.g. one line lower)
|
||||
aTargetPt.y -= 1;
|
||||
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче