Make the container 100% instead of fixed and leave it up to the outer container to set the constraints.