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:
07194be
)
fix for JAL-2991 - we could do better :/
bug/JAL-2991_exporttosvgwrapview
author
Jim Procter
<jprocter@issues.jalview.org>
Wed, 23 May 2018 15:19:56 +0000
(16:19 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Wed, 23 May 2018 15:19:56 +0000
(16:19 +0100)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
2d8eb7d
..
8f315bd
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-652,6
+652,11
@@
public class SeqCanvas extends JComponent implements ViewportListenerI
ViewportRanges ranges = av.getRanges();
ranges.setViewportStartAndWidth(startColumn, wrappedWidthInResidues);
+ // we need to call this again to make sure the startColumn +
+ // wrappedWidthInResidues values are used to calculate wrappedVisibleWidths
+ // correctly.
+ calculateWrappedGeometry(canvasWidth, canvasHeight);
+
/*
* draw one width at a time (including any scales or annotation shown),
* until we have run out of either alignment or vertical space available