From e940a81d41eb9978e9539a0ed8c0d385e2bb4e2a Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Fri, 26 Oct 2018 01:22:49 +0200 Subject: [PATCH] Fix height of background etc --- src/main/java/ctbrec/ui/ThumbCell.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ctbrec/ui/ThumbCell.java b/src/main/java/ctbrec/ui/ThumbCell.java index c50d91f2..aeb4d014 100644 --- a/src/main/java/ctbrec/ui/ThumbCell.java +++ b/src/main/java/ctbrec/ui/ThumbCell.java @@ -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()); } }