Fixed resizing issues with some Android devices.