mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DBE-776: TableExpandableItemsHandler: do not expand cells being edited
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.ui;
|
||||
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.ListSelectionEvent;
|
||||
@@ -105,8 +106,11 @@ public class TableExpandableItemsHandler extends AbstractExpandableItemsHandler<
|
||||
return myComponent.getCellRect(tableCellKey.row, tableCellKey.column, false);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Pair<Component, Rectangle> getCellRendererAndBounds(TableCell key) {
|
||||
if (key.row < 0 || key.row >= myComponent.getRowCount() || key.column < 0 || key.column >= myComponent.getColumnCount()) {
|
||||
if (key.row < 0 || key.row >= myComponent.getRowCount() ||
|
||||
key.column < 0 || key.column >= myComponent.getColumnCount() ||
|
||||
key.row == myComponent.getEditingRow() && key.column == myComponent.getEditingColumn()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user