Fix bug with children not resizing with main window