Dimens weren't refreshed when the orientation changed. Dimens are not the right solution anyway, use scaling factors instead.
Useful when debugging why the keyboard doesn't work as expected with a specific app.