git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f932cb5
)
Use font size, not font height
author
amwaterhouse
<Andrew Waterhouse>
Wed, 14 Sep 2005 12:20:48 +0000
(12:20 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Wed, 14 Sep 2005 12:20:48 +0000
(12:20 +0000)
src/jalview/gui/TreeCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/TreeCanvas.java
b/src/jalview/gui/TreeCanvas.java
index
e89f441
..
79634f6
100755
(executable)
--- a/
src/jalview/gui/TreeCanvas.java
+++ b/
src/jalview/gui/TreeCanvas.java
@@
-217,7
+217,7
@@
public class TreeCanvas extends JPanel implements MouseListener, Runnable,
? (PLACEHOLDER + node.getName()) : node.getName();
\r
\r
int charWidth = fm.stringWidth(name) + 3;
\r
- int charHeight = fm.getHeight();
\r
+ int charHeight = font.getSize();
\r
\r
Rectangle rect = new Rectangle(xend+10, ypos-charHeight/2,
\r
charWidth, charHeight);
\r