box-layout: Fix RTL layout swapping with non-zero container offsets

https://bugzilla.gnome.org/show_bug.cgi?id=706450