Temporary workaround for #2. Only works for portrait orientation.