Fix height of background etc

This commit is contained in:
0xboobface 2018-10-26 01:22:49 +02:00
parent 6ca7d43069
commit e940a81d41
1 changed files with 4 additions and 4 deletions

View File

@ -491,13 +491,13 @@ public class ThumbCell extends StackPane {
nameBackground.setWidth(w);
nameBackground.setHeight(20);
topicBackground.setWidth(w);
topicBackground.setHeight(h-nameBackground.getHeight());
topic.prefHeight(h-25);
topic.maxHeight(h-25);
topicBackground.setHeight(getHeight()-nameBackground.getHeight());
topic.prefHeight(getHeight()-25);
topic.maxHeight(getHeight()-25);
int margin = 4;
topic.maxWidth(w-margin*2);
topic.setWrappingWidth(w-margin*2);
selectionOverlay.setWidth(w);
selectionOverlay.setHeight(h);
selectionOverlay.setHeight(getHeight());
}
}