(bug 24692) Make the padding support RTL languages