forked from j62/ctbrec
Adjust ImageView size to match ThumbCell size
This commit is contained in:
parent
a8b1af848a
commit
0a5365360f
|
@ -611,6 +611,8 @@ public class ThumbCell extends StackPane {
|
||||||
int height = (int) (width * imgAspectRatio);
|
int height = (int) (width * imgAspectRatio);
|
||||||
setPrefSize(width, height);
|
setPrefSize(width, height);
|
||||||
setSize(width, height);
|
setSize(width, height);
|
||||||
|
iv.prefHeight(height);
|
||||||
|
iv.prefWidth(width);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setSize(int w, int h) {
|
private void setSize(int w, int h) {
|
||||||
|
|
Loading…
Reference in New Issue