I have a dialog box with a text field in it. The text field can be set with text that wraps. So the size of the text field is unknown. Well when the text field has text that is 2 lines, it causes children to be pushed down. The bottom children are cut off because the dialog box (TitleWindow) doesn't resize. I set autolayout=true, but that didn't help. I have tried invalidateSize() after setting the text etc. without success.