fixed position bug

Some time ago I fixed a positioning bug on ipads. We use this in production and it works quite well, thanks.