You need to set up your anchors properly. In your last screenshot your right-most button's anchors are wrong. You seem to have it anchored Left-to-Left, then Right-to-center. It should be Right-to-Left, meaning both Left and Right sides need to be anchored to the target's left side.