mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-192353 Table (list) selected items are shifted to the right
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.ui;
|
||||
|
||||
import com.intellij.util.ui.JBEmptyBorder;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -40,12 +41,16 @@ public class TableCellState {
|
||||
myForeground = table.getForeground();
|
||||
myBackground = table.getBackground();
|
||||
}
|
||||
|
||||
Border border = UIUtil.getTableFocusCellHighlightBorder();
|
||||
if (hasFocus) {
|
||||
myCellBorder = UIUtil.getTableFocusCellHighlightBorder();
|
||||
myCellBorder = border;
|
||||
if (table.isCellEditable(row, column)) {
|
||||
myForeground = UIUtil.getTableFocusCellForeground();
|
||||
myBackground = UIUtil.getTableFocusCellBackground();
|
||||
}
|
||||
} else {
|
||||
myCellBorder = new JBEmptyBorder(border.getBorderInsets(null));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user