What overrides what with these UI constraints?

So I have a frame with x,y scale, a UIAspectRatioConstraint, and a UISizeConstraint. The UIAspectRatioConstraint is used in this case to make the UI uniform on all screen sizes, and the UISizeConstraint is supposed to prevent the gui becoming massive (height wise) on wide (wider than 16:9) screens. However, it doesn’t work. I can pull the screen super wide and it still goes way above the MaxSize Y value I put into the UISizeConstraint. Is there something I’m missing about these constraints overriding each other, or is there something I can change in one of them or the frame to make it work? Thanks.