0

So I have a scrollable message system using this structure:

Structure

The HBoxes contain a message, there are multiple.

The problem is, when more HBoxes/messages are added, they are shrunk to one line, and the labels inside them are overrun. I don't want this.

Here are examples of how it looks when the hboxes are not shrunk: enter image description here

And this is how it looks when there are many enough messages for it shrink the hboxes: enter image description here

It's either an FXML property I haven't set, or some other solution to the problem. Much appreciated!

EDIT: To clarify, Messages that have been shrunk can only show one line of text.

All Meta
  • 35
  • 7
  • Do you have a max width defined for the HBox? – ItachiUchiha Apr 12 '18 at 19:39
  • Yes @ItachiUchiha they are set to 250, but as you see it wraps the text and makes a new line. – All Meta Apr 13 '18 at 00:26
  • Just to clarify things, you add an HBox which contain a Label everytime you have a message ? And want the result to be/stay like the first image ? – Bo Halim Apr 14 '18 at 10:29
  • Yes @BoHalim the problem is that the messages try to fit the vbox, like it does not know that it is scrollable, and therefore shrinks – All Meta Apr 19 '18 at 16:51

0 Answers0