This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
After the HTML renderer integration, my tree views (e.g. Projects tab) are using a slightly larger cell height, which looks slightly odd and wastes a little vertical space. Went from 16 pixels to 18 pixels. Intentional? I am using Metal on JDK 1.5.0 b48. See screenshots.
Created attachment 14674 [details] Before shot
Created attachment 14675 [details] After shot; looks like a lazy student trying to make a term paper look longer than it is :-)
Checking in src/org/openide/awt/HtmlLabelUI.java; /cvs/openide/src/org/openide/awt/HtmlLabelUI.java,v <-- HtmlLabelUI.java new revision: 1.3; previous revision: 1.2 done
Thanks, that was fast!
Hmm, but I just made a fresh dev build and opened it on my same user dir, and it is still 18 pixels.
The algorithm is correct; it was broken before (even with -fontsize 30, tree cells were always 16px). It is: Math.max (18, fontMetrics.getHeight()) 18 is necessary so the focus border does not overlap the icon (and so icons are not on top of each other if they don't contain an internal margin) - icon height of 16 + 1px above and below. However, I've added support for "Jesse mode" - run with -J-Dnb.cellrenderer.fixedheight=12 or whatever So this is as fixed as it's going to get... Checking in src/org/openide/awt/HtmlLabelUI.java; /cvs/openide/src/org/openide/awt/HtmlLabelUI.java,v <-- HtmlLabelUI.java new revision: 1.4; previous revision: 1.3 done Processing log script arguments... More commits to come... Checking in src/org/openide/explorer/view/TreeView.java; /cvs/openide/src/org/openide/explorer/view/TreeView.java,v <-- TreeView.java new revision: 1.161; previous revision: 1.160 done
OK, so long as it is intentional.
verified