PY-9516 Wrong current parameter info popup position with caret on indented line

This commit is contained in:
Ekaterina Tuzova
2016-05-26 17:36:51 +03:00
parent a37412c38e
commit b992a08822
@@ -288,7 +288,8 @@ public class ParameterInfoController implements Disposable {
short position = tooltip != null
? toShort(tooltip.getPreferredPosition())
: HintManager.UNDER;
Pair<Point, Short> pos = myProvider.getBestPointPosition(myHint, (PsiElement)elementForUpdating, offset, true, position);
Pair<Point, Short> pos = myProvider.getBestPointPosition(myHint, (PsiElement)elementForUpdating,
myEditor.getCaretModel().getOffset(), true, position);
HintManagerImpl.adjustEditorHintPosition(myHint, myEditor, pos.getFirst(), pos.getSecond());
}
}