Fix layout for RTL locales, part of Bug 987191