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

Labeled popover overflow display

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx

      Currently all of the overrun styles for labeled truncate the labeled content.

      It would useful to be able to dynamically display all of the labeled content (for example in a popover) when the user mouses over the truncated label.

      An example use case would be an overrun label which could be toggled, using a :hover pseudoclass, between an ellipsis truncation and a popover displaying full label content. The toggle could be achieved by modifying the value of the -fx-text-overrun css property.

      .label {
        -fx-text-overrun: ellipse;
      }

      .label:hover {
        -fx-text-overrun: popover;
      }

      I attached an image (borrowed from the Injellij Idea treeview implementation) to demonstrate the concept - when the user mouses over the overflowed label, the complete label is shown in a popover.

            Unassigned Unassigned
            josmithjfx John Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: