JAL-3446 problem with Select-Find tooltip
[jalview.git] / src / jalview / gui / JvSwingUtils.java
index 2f4a0fe..e399236 100644 (file)
@@ -75,15 +75,16 @@ public final class JvSwingUtils
 
     if (ttext.contains("<br>"))
     {
-      String[] htmllines = ttext.split("<br>");
-      for (String line : htmllines)
-      {
-        maxLengthExceeded = line.length() > 60;
-        if (maxLengthExceeded)
-        {
-          break;
-        }
-      }
+      maxLengthExceeded = false;
+//      String[] htmllines = ttext.split("<br>");
+//      for (String line : htmllines)
+//      {
+//        maxLengthExceeded = line.length() > 60;
+//        if (maxLengthExceeded)
+//        {
+//          break;
+//        }
+//      }
     }
     else
     {
@@ -97,7 +98,7 @@ public final class JvSwingUtils
 
     return (enclose ? "<html>" : "")
      // BH 2018
-            + "<style> div.ttip {width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;}</style><div class=\"ttip\">"
+            + "<style> div.ttip {width:350px;white-space:pre-wrap;margin:2px;overflow-wrap:break-word;}</style><div class=\"ttip\">"
 //            + "<style> p.ttip {width:350px;margin:-14px 0px -14px 0px;padding:2px;overflow-wrap:break-word;}"
 //            + "</style><p class=\"ttip\">"
             + ttext