Apply constraints to define how layers resize