av.charHeight / 2 + 12));\r
scalePanelHolder.setPreferredSize(new Dimension(500,\r
av.charHeight / 2 + 12));\r
+\r
if (av.getWrapAlignment())\r
{\r
int max = av.alignment.getWidth() /\r
- (seqPanel.seqCanvas.getWidth() / av.charWidth) + 1;\r
+ (seqPanel.seqCanvas.getWidth() / av.charWidth)+1 ;\r
\r
- int h = (av.alignment.getHeight() + 2) * av.charHeight;\r
- vextent = seqPanel.seqCanvas.getHeight() / h;\r
- vscroll.setValues(0, vextent, 0, max);\r
+ vscroll.setValues(0, 1, 0, max);\r
}\r
else\r
+ {\r
+ av.getConsensus(true);\r
+ if (overviewPanel != null)\r
+ overviewPanel.updateOverviewImage();\r
+ setScrollValues(av.getStartRes(), av.getStartSeq());\r
+ }\r
\r
- av.getConsensus(true);\r
- if (overviewPanel != null)\r
- overviewPanel.updateOverviewImage();\r
-\r
- validate();\r
- setScrollValues(av.getStartRes(), av.getStartSeq());\r
repaint();\r
}\r
+\r
int hextent = 0;\r
int vextent = 0;\r
\r
-\r
// return value is true if the scroll is valid\r
public boolean scrollUp(boolean up)\r
{\r