How to constrain resizable items in container with hbox layout?

Let's say I have two items inside a container with a hbox layout. The first (left) item is resizable to the right and the second (right) item has a min width set. Unfortunately, it is possible to resize the the first item until the it's resize handle and the second item are outside of their parent container.

Is there a way to constrain the items inside their container? I already tried constrainAlign, manageOverflow and shrinkWrap. But to be honest, I don't really know where to put them. Thanks in advance.