I didn't tested this but this looks like the element can collapse to 0. Shouldn't this be restricted and the element move to the left instead?