mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] change reference labels width limit: allow them to occupy up to half of the row in non-compact mode
This commit is contained in:
+7
-2
@@ -217,8 +217,13 @@ public class GraphCommitCellRenderer extends TypeSafeTableCellRenderer<GraphComm
|
||||
|
||||
private int getAvailableWidth(int column) {
|
||||
int columnWidth = myGraphTable.getColumnModel().getColumn(column).getWidth();
|
||||
return Math.min(columnWidth - super.getPreferredSize().width,
|
||||
myReferencePainter.isCompact() ? columnWidth / 3 : Math.max(columnWidth - FREE_SPACE, 0));
|
||||
int freeSpace = columnWidth - super.getPreferredSize().width;
|
||||
if (myReferencePainter.isCompact()) {
|
||||
return Math.min(freeSpace, columnWidth / 3);
|
||||
}
|
||||
else {
|
||||
return Math.max(freeSpace, columnWidth / 2);
|
||||
}
|
||||
}
|
||||
|
||||
private int calculateHeight() {
|
||||
|
||||
Reference in New Issue
Block a user