This discussion is archived
3 Replies Latest reply: Apr 12, 2013 4:49 AM by James_D RSS

setting the preferred width or height of a ListView using css ?

se*328623*78 Newbie
Currently Being Moderated
Is it possible to set the preferred width and height of a Node (a ListView) using css ?
Just in case I tried with:

.my-list {
     -fx-pref-width: 130;
     -fx-pref-height: 100;
}

but it does not seem to work.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points