Skip to content

Commit a30d168

Browse files
committed
notes about #5246
1 parent 422fc90 commit a30d168

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/src/processing/app/ui/ZoomTreeCellRenderer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
public class ZoomTreeCellRenderer extends DefaultTreeCellRenderer {
3434

3535
public ZoomTreeCellRenderer(Mode mode) {
36-
//setFont(Toolkit.getSansFont(Toolkit.zoom(14), Font.PLAIN));
3736
setFont(mode.getFont("tree.font"));
3837
}
3938

@@ -50,10 +49,12 @@ public Component getTreeCellRendererComponent(JTree tree, Object value,
5049
// https://github.com/processing/processing/issues/4936
5150
int high = getPreferredSize().height;
5251
if (high != 0) {
53-
// add 15% for a little more spacing.. Source Sans leading is short
52+
// Source Sans leading too short, so also add 15% for nicer spacing
5453
high = (int) (high * 1.15f);
5554
int current = getSize().height;
5655
if (current != high) {
56+
// This seems to be causing an infinite loop on Windows
57+
// https://github.com/processing/processing/issues/5246
5758
tree.setRowHeight(high);
5859
}
5960
}

0 commit comments

Comments
 (0)