JAL-3253-applet JAL-3360 HTML tooltips not trimming properly; need <div>
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 10 Jul 2019 08:55:53 +0000 (09:55 +0100)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 10 Jul 2019 08:55:53 +0000 (09:55 +0100)
for sizing in JavaScript

src/jalview/gui/JvSwingUtils.java

index a582133..c1c8c82 100644 (file)
@@ -95,15 +95,12 @@ public final class JvSwingUtils
     {
       return enclose ? "<html>" + ttext + "</html>" : ttext;
     }
-
-    return (enclose ? "<html><div style='width:350px'>"
-            
-            // BH 2018,2019
-            
-            + "<style> div.ttip {width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;}</style><div class=\"ttip\">"
+    // BH 2018,2019
+    return (enclose
+            ? "<html><div style=\"width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;\">"
             + ttext
-            + " </div></div>"
-            + "</html>" : ttext);
+                    + "</div></html>"
+            : ttext);
 
   }