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:
78f5bbe
)
JAL-3386 correct wrapped width calculation for headless image export
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 29 Jul 2019 14:48:30 +0000
(15:48 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 29 Jul 2019 14:48:30 +0000
(15:48 +0100)
src/jalview/gui/AlignmentPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignmentPanel.java
b/src/jalview/gui/AlignmentPanel.java
index
3dc182a
..
ea8fcdc
100644
(file)
--- a/
src/jalview/gui/AlignmentPanel.java
+++ b/
src/jalview/gui/AlignmentPanel.java
@@
-1075,6
+1075,7
@@
public class AlignmentPanel extends GAlignmentPanel implements
int resWidth = getSeqPanel().seqCanvas
.getWrappedCanvasWidth(pageWidth - idWidth);
int resWidth = getSeqPanel().seqCanvas
.getWrappedCanvasWidth(pageWidth - idWidth);
+ av.getRanges().setViewportStartAndWidth(0, resWidth);
int totalHeight = cHeight * (maxwidth / resWidth + 1);
int totalHeight = cHeight * (maxwidth / resWidth + 1);
@@
-1086,8
+1087,8
@@
public class AlignmentPanel extends GAlignmentPanel implements
/*
* method: print the whole wrapped alignment, but with a clip region that
* is restricted to the requested page; this supports selective print of
/*
* method: print the whole wrapped alignment, but with a clip region that
* is restricted to the requested page; this supports selective print of
- * single pages or ranges, (at the cost of some repeated processing in
- * the 'normal' case, when all pages are printed)
+ * single pages or ranges, (at the cost of repeated processing in the
+ * 'normal' case, when all pages are printed)
*/
g.translate(0, -pageNumber * pageHeight);
*/
g.translate(0, -pageNumber * pageHeight);