this doesn't really apply to Xojo (yet) as AL is used only in the iOS product (for now)... but the question might become more relavant if/when AL comes to Desktop.
But in anycase, I'm trying to get a handle on simple basic generic Autolayout
Suppose one wanted to duplicate the LockLeft/Top/Right/Bottom feature.... should be a simple thing.
for Left and top....
you would set a "left constraint" that is X units from the screen left side and a "top constraint" that is Y units from the top... so when the window was resized the Left and Top would stay in place
but what would the proper values be for right and bottom?
I would *think* that it would be
leftC = child.X topC = child.Y rightC = parent.width - child.x + child.width bottomC = parent.height - child.y + child.height rightConstraint = NSLayoutConstraint(item : child, attribute : .right, relatedBy : .equal, toItem : parentView, attribute : .right, multiplier : 1.0, constant : rightC)
Am I even is the right ballpark here?