I have the following layers:
Which look like this:
Now, I want to align the text within the rounded rectangle both horizontally and vertically. However, it seems I can only do it vertically. If I tap the fifth button below:
That is, "Align horizontal centers", the text will be aligned to the artboard itself and not the rounded rectangle.