Once cell is sized, it can not be resized
cell.setOnMouseClicked(new EventHandler<MouseEvent>() {
public void handle(MouseEvent t) {
System.out.println("cell clicked");
final Contact contact = cell.getItem();
cell.setPrefHeight(EXPANDED_HEIGHT);
cell.setMinHeight(EXPANDED_HEIGHT);
cell.autosize();
cell.resize(Util.LIST_WIDTH, EXPANDED_HEIGHT);
}
});
none of these is working to resize correctly cell
cell.setOnMouseClicked(new EventHandler<MouseEvent>() {
public void handle(MouseEvent t) {
System.out.println("cell clicked");
final Contact contact = cell.getItem();
cell.setPrefHeight(EXPANDED_HEIGHT);
cell.setMinHeight(EXPANDED_HEIGHT);
cell.autosize();
cell.resize(Util.LIST_WIDTH, EXPANDED_HEIGHT);
}
});
none of these is working to resize correctly cell