From e6ae1a0869ced674b7032826527ad229e8efa8db Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 23 Apr 2010 12:19:24 +0000 Subject: [PATCH] fix for bug #62456 --- src/jalview/appletgui/TreeCanvas.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jalview/appletgui/TreeCanvas.java b/src/jalview/appletgui/TreeCanvas.java index 4e15fd3..f0e7b62 100755 --- a/src/jalview/appletgui/TreeCanvas.java +++ b/src/jalview/appletgui/TreeCanvas.java @@ -406,7 +406,7 @@ public class TreeCanvas extends Panel implements MouseListener, { repaint(); } - + int width = scrollPane.getSize().width; int height = scrollPane.getSize().height; if (!fitToWindow) @@ -424,9 +424,8 @@ public class TreeCanvas extends Panel implements MouseListener, setSize(new Dimension(width, height)); g.setFont(font); - draw(g, width, height); - + validate(); } public void draw(Graphics g, int width, int height) -- 1.7.10.2