Container locking oddness

I don’t even know how to ask this.

If I create a custom control with a mobileContainer there seems to be some bad/unpredictable behavior if I lock or unlock various sides.

I understand how these are supposed to work, but when combined with putting them in a screen and locking sides it seems that they get double-adjusted or something.

Has anyone seen this? Does this make any sense?