More RTL improvements

Gravity will now use the correct method depending on the version, and drop the custom alignment enum