Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: jalview-j2s
-
Labels:None
Description
The mechanism used to generate the exact size of a label is to wrap the HTML with a div and read div.getBoundingClientRect(). In the case of these wrapped divs (JvSwingUtils.wrapToolTip, which explicitly contain a width:350px style, that style must be in an outer div, not after the <style> tag. The solution is to do that wrapping in JvSwingUtils, then in JSComponentUI.setHTMLSize1 recognize that and use that the textNode of the JLabel is a div and use that directly.
fixed.
fixed.