Fixed a bug on Android where ensureRight and ensureBottom were not being honored.