Returns the size of the right inset, taking into account the layout direction.
whether the layout is left-to-right.