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

Provide CSS for available API on Tooltip

XMLWordPrintable

    • x86_64
    • windows_7

      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

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

              Created:
              Updated: