mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
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:
+8
-8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user