1 Reply Latest reply: Jan 21, 2013 9:37 AM by 984080 RSS

    Alternative for first-child and last-child

    svanimpe
      Hi all,

      I am looking to style a ListView with rounded corners (similar to iOS), but so far, I have not been able to find a way to do this without first-child and last-child pseudoselectors, which are not supported in JavaFX, according to http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html.

      Simply setting rounded corners on a ListView causes the ListCells to pop out, unless I set rounded corners on them as well. But I only want to to this on the top and bottom child.

      Does anyone have a workaround for this ?