locking x and y if content is same size as container