Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8166510

Provide CSS for available API on Tooltip

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      A DESCRIPTION OF THE REQUEST :
      In the current implementation of Tooltip only certain parameters are style able through CSS, however key items such as maxWidth is not, yet is available in API.

      JUSTIFICATION :
      Having to subclass Tooltip to set these values to provide a common look and feel is cumbersome, and requires new developers to know to use these tools, otherwise they will set manually in code such as tooltip.setMaxWidth(). Being able to define this in CSS would make coding simpler and more consistent and allow for rapid changes without impacting the code base.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      setting

      .tooltip {
        -fx-max-width: 250;
        -fx-wrap-text:true;
      }

      Should provide a presized tooltip that wraps when it's width is exceeded
      ACTUAL -
      Nothing happens unless you set the max width in code

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: