Fixing the device width issue on iOS

Fixes #9