IDEA-105769 Cannot scroll in quick documentation

while using completion in debug/watches panel (when adding/editing a new entry)
Iteration #2
This commit is contained in:
Vassiliy.Kudryashov
2017-08-15 23:17:21 +03:00
parent 88063d1b29
commit df7cc266d9
@@ -237,6 +237,14 @@ public abstract class TreeInplaceEditor implements AWTEventListener {
final Editor editor = getEditor();
if (editor == null) return;
// do not cancel editing if we click or scroll in editor popup
final List<JBPopup> popups = JBPopupFactory.getInstance().getChildPopups(myInplaceEditorComponent);
for (JBPopup popup : popups) {
if (SwingUtilities.isDescendingFrom(sourceComponent, UIUtil.getWindow(popup.getContent()))) {
return;
}
}
Project project = editor.getProject();
LookupImpl activeLookup = project != null ? (LookupImpl)LookupManager.getInstance(project).getActiveLookup() : null;
if (activeLookup != null){
@@ -248,14 +256,6 @@ public abstract class TreeInplaceEditor implements AWTEventListener {
}
}
// do not cancel editing if we click in editor popup
final List<JBPopup> popups = JBPopupFactory.getInstance().getChildPopups(myInplaceEditorComponent);
for (JBPopup popup : popups) {
if (SwingUtilities.isDescendingFrom(sourceComponent, UIUtil.getWindow(popup.getContent()))) {
return;
}
}
final Point point = SwingUtilities.convertPoint(sourceComponent, originalPoint, myInplaceEditorComponent);
if (myInplaceEditorComponent.contains(point)) {
return;