Fix height of background etc
This commit is contained in:
parent
6ca7d43069
commit
e940a81d41
|
@ -491,13 +491,13 @@ public class ThumbCell extends StackPane {
|
||||||
nameBackground.setWidth(w);
|
nameBackground.setWidth(w);
|
||||||
nameBackground.setHeight(20);
|
nameBackground.setHeight(20);
|
||||||
topicBackground.setWidth(w);
|
topicBackground.setWidth(w);
|
||||||
topicBackground.setHeight(h-nameBackground.getHeight());
|
topicBackground.setHeight(getHeight()-nameBackground.getHeight());
|
||||||
topic.prefHeight(h-25);
|
topic.prefHeight(getHeight()-25);
|
||||||
topic.maxHeight(h-25);
|
topic.maxHeight(getHeight()-25);
|
||||||
int margin = 4;
|
int margin = 4;
|
||||||
topic.maxWidth(w-margin*2);
|
topic.maxWidth(w-margin*2);
|
||||||
topic.setWrappingWidth(w-margin*2);
|
topic.setWrappingWidth(w-margin*2);
|
||||||
selectionOverlay.setWidth(w);
|
selectionOverlay.setWidth(w);
|
||||||
selectionOverlay.setHeight(h);
|
selectionOverlay.setHeight(getHeight());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue