зеркало из https://github.com/mozilla/gecko-dev.git
Bug 336590: Caret can not be placed after space at the end of a wrapped line in textarea, using the mouse. r+sr=roc
This commit is contained in:
Родитель
6ccdcef971
Коммит
c5c3c2492b
|
@ -4042,8 +4042,6 @@ void nsTypedSelection::setAnchorFocusRange(PRInt32 indx)
|
|||
}
|
||||
else{
|
||||
mAnchorFocusRange = mRangeArray[indx];
|
||||
// Make sure the caret appears on the next line, if at a newline
|
||||
SetInterlinePosition(PR_TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5138,6 +5136,9 @@ nsTypedSelection::AddRange(nsIDOMRange* aRange)
|
|||
}
|
||||
setAnchorFocusRange(count -1);
|
||||
|
||||
// Make sure the caret appears on the next line, if at a newline
|
||||
SetInterlinePosition(PR_TRUE);
|
||||
|
||||
nsCOMPtr<nsPresContext> presContext;
|
||||
GetPresContext(getter_AddRefs(presContext));
|
||||
selectFrames(presContext, aRange, PR_TRUE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче