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:
612a0d5
)
Resize image if id width changes
author
amwaterhouse
<Andrew Waterhouse>
Fri, 28 Jul 2006 16:06:10 +0000
(16:06 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 28 Jul 2006 16:06:10 +0000
(16:06 +0000)
src/jalview/gui/IdCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/IdCanvas.java
b/src/jalview/gui/IdCanvas.java
index
7734f9a
..
30152cc
100755
(executable)
--- a/
src/jalview/gui/IdCanvas.java
+++ b/
src/jalview/gui/IdCanvas.java
@@
-183,7
+183,7
@@
public class IdCanvas extends JPanel
return;
\r
}
\r
\r
- if(oldHeight!=imgHeight)
\r
+ if(oldHeight!=imgHeight || image.getWidth(this)!=getWidth())
\r
{
\r
image = new BufferedImage(getWidth(), imgHeight,
\r
BufferedImage.TYPE_INT_RGB);
\r