Bug 370436 - "Context menu from keyboard for spell checker selects the wrong line" [r=roc]

This commit is contained in:
Cristian KLEIN 2010-01-09 09:51:00 -06:00
Родитель bacd132d67
Коммит 2d9afcd8ae
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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;
}