See attached project. I think the problem is in the frame object. It doesn't resize it's child objects. Since the hbox inside the frame does not get resized, the hbox cannot resize it's children objects.