mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DBE-1035: fix JBTable not using column margin when expanding/collapsing columns
This commit is contained in:
@@ -741,7 +741,8 @@ public class JBTable extends JTable implements ComponentWithEmptyText, Component
|
||||
TableColumn column = getColumnModel().getColumn(columnToPack);
|
||||
int currentWidth = column.getWidth();
|
||||
int expandedWidth = getExpandedColumnWidth(columnToPack);
|
||||
int newWidth = currentWidth >= expandedWidth ? getPreferredHeaderWidth(columnToPack) : expandedWidth;
|
||||
int newWidth = getColumnModel().getColumnMargin() +
|
||||
(currentWidth >= expandedWidth ? getPreferredHeaderWidth(columnToPack) : expandedWidth);
|
||||
|
||||
setResizingColumn(column);
|
||||
column.setWidth(newWidth);
|
||||
|
||||
Reference in New Issue
Block a user