зеркало из https://github.com/mozilla/pjs.git
Fixed context menu problem when > 1 cell selected, b=55991, r=akkana, sr=kin
This commit is contained in:
Родитель
dc9d7d12d6
Коммит
b7919fe2cb
|
@ -273,6 +273,10 @@ nsEditorShellMouseListener::MouseDown(nsIDOMEvent* aMouseEvent)
|
|||
continue;//dont bail yet, iterate through them all
|
||||
|
||||
res = nsrange->IsPointInRange(parent, offset, &NodeIsInSelection);
|
||||
|
||||
// Done when we find a range that we are in
|
||||
if (NodeIsInSelection)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -273,6 +273,10 @@ nsEditorShellMouseListener::MouseDown(nsIDOMEvent* aMouseEvent)
|
|||
continue;//dont bail yet, iterate through them all
|
||||
|
||||
res = nsrange->IsPointInRange(parent, offset, &NodeIsInSelection);
|
||||
|
||||
// Done when we find a range that we are in
|
||||
if (NodeIsInSelection)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче