Fix misaligned baseline in horizontal layout.

This bug was introduced in the previous commit.
The baseline of text in horizontal layout is not
aligned.