Merge branch 'Jalview-JS/jim/JAL-3253-JAL-3418' into Jalview-JS/JAL-3253-applet
authorJim Procter <jprocter@issues.jalview.org>
Wed, 21 Aug 2019 09:23:35 +0000 (10:23 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 21 Aug 2019 09:23:35 +0000 (10:23 +0100)
build.xml
src/jalview/viewmodel/ViewportRanges.java

index 775df8d..6154cca 100755 (executable)
--- a/build.xml
+++ b/build.xml
 
     <!-- default TestNG groups to run -->
     <property name="testng-groups" value="Functional" />
+    <!-- default verbosity for TestNG -->
+    <property name="testng-verbosity" value="2"/>
     <!-- Java 9 JVM args -->
     <condition property="java9">
       <equals arg1="${ant.java.version}" arg2="9"/>
 
   <target name="testng" depends="buildTests">
     <testng outputDir="${reportDir}" haltOnFailure="false" groups="${testng-groups}" mode="testng"
-      verbose="2">
+      verbose="${testng-verbosity}">
       <classpath>
         <pathelement location="${testOutputDir}" />
         <pathelement location="${clover.jar}" if:set="clover.jar"/>
index 9f54964..a022627 100644 (file)
@@ -224,7 +224,7 @@ public class ViewportRanges extends ViewportProperties
   public void setStartSeq(int seq)
   {
     int height = getViewportHeight();
-    int startseq = Math.max(seq, getVisibleAlignmentHeight() - height);
+    int startseq = Math.min(seq, getVisibleAlignmentHeight() - height);
     // BH 2019.07.27 cosmetic only -- was:
     // if (startseq + height - 1 > getVisibleAlignmentHeight() - 1)
     // {