This is kind of a "well, duh" moment for me, but I *just* realized that setting a "flexible width, flexible height" autoresizing mask and translating into constraints is NOT the same thing as pinning the top, bottom, leading, and trailing edges.

Finally found the source of a bunch of minor layout issues

@davedelong not in the general case… but if the view’s initial frame fills the superview they’re equivalent, right?

@ronnqvist My bug was that I was getting a height constraint set on the view (despite the flexible height mask).

Switching to pinning the 4 edges Fixed Everything™. Just another sign to me that we should be using AL directly instead of trying to shortcut through resizing masks

@davedelong Been there. It’s easy to trip over that and miss it if the sub view starts out with the same frame.

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!