forked from j62/ctbrec
1
0
Fork 0

Adjust ImageView size to match ThumbCell size

This commit is contained in:
0xb00bface 2020-09-29 11:04:22 +02:00
parent a8b1af848a
commit 0a5365360f
1 changed files with 2 additions and 0 deletions

View File

@ -611,6 +611,8 @@ public class ThumbCell extends StackPane {
int height = (int) (width * imgAspectRatio);
setPrefSize(width, height);
setSize(width, height);
iv.prefHeight(height);
iv.prefWidth(width);
}
private void setSize(int w, int h) {