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:
eb9e902
)
Jal-3357 ISSUE JAL-3253-applet tooltip for PHOSPHORYLATION missing
author
hansonr
<hansonr@STO24954W.ad.stolaf.edu>
Tue, 9 Jul 2019 15:19:43 +0000
(16:19 +0100)
committer
hansonr
<hansonr@STO24954W.ad.stolaf.edu>
Tue, 9 Jul 2019 15:19:43 +0000
(16:19 +0100)
src/jalview/gui/JvSwingUtils.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/JvSwingUtils.java
b/src/jalview/gui/JvSwingUtils.java
index
d44080a
..
a582133
100644
(file)
--- a/
src/jalview/gui/JvSwingUtils.java
+++ b/
src/jalview/gui/JvSwingUtils.java
@@
-61,7
+61,8
@@
public final class JvSwingUtils
* style class specifying word-wrap and break-word
*
* @param enclose
* style class specifying word-wrap and break-word
*
* @param enclose
- * if true, add <html> wrapper tags
+ * if true, add <html> wrapper tags (currently false for only
+ * two references -- both in Jws2Discoverer --
* @param ttext
*
* @return
* @param ttext
*
* @return
@@
-95,20
+96,14
@@
public final class JvSwingUtils
return enclose ? "<html>" + ttext + "</html>" : ttext;
}
return enclose ? "<html>" + ttext + "</html>" : ttext;
}
- return (enclose ? "<html>" : "")
+ return (enclose ? "<html><div style='width:350px'>"
- // BH 2018
+ // BH 2018,2019
+ "<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;padding: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
+ ttext
-
- + " </div>"
-// + "</p>"
- + ((enclose ? "</html>" : ""));
+ + " </div></div>"
+ + "</html>" : ttext);
}
}