Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3357

multiline html-wrapped tooltips without <br> are not showing (phosporylation, e.g.)

    XMLWordPrintable

    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.

        Attachments

          Activity

            People

            Assignee:
            jprocter James Procter
            Reporter:
            hansonr Bob Hanson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: