-
Notifications
You must be signed in to change notification settings - Fork 139
richdocumentsframe use 100% of mobile screen height #1781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
richdocumentsframe use 100% of mobile screen height #1781
Conversation
Signed-off-by: Andreas-Kainz <[email protected]>
|
@juliushaertl, @eszkadev, @pedropintosilva I only know that I still have the sizing issue on mobile (all browsers) at https://staging.eu.collaboraonline.com server. Maybe the sizing issue is already fixed. Please let me know. |
|
The 50px offset was needed for conditions where the height could not be properly determined through css on larger iOS devices, though I haven't considered that we actually hide the Nextcloud toolbar on smaller ones. It is determined by the viewport width Line 1 in cef30f5
|
|
If I test try.nextcloud.com or the colabora staging and demo nextcloud account, everywhere I have this issue on my phone. If I remove the |
juliusknorr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resizing to 100%-50px would still be required for larger devices (this rule is actually only necessary for Safari on iOS which doesn't work well with the calc(100vh - 50) that is applied form css.
In order to get this in I'd suggest to do a check like this to not apply the 50px offset for the nextcloud header if mobile.css styles apply.
|
The screenshots were done from my fairphone 3 (1,080x2,160 pixels) with android and chrome or firefox as browser. So there is the issue already, not only on ios with Safari. I'm sorry that my technical expertise is not good enough to review the suggested change. Is there somewhere a pre-build where I can test the change on the phone? Or at least after the PR was merged to have a look if the issue is fixed? |
Signed-off-by: Julius Härtl <[email protected]>
Moobile phones might report a different smaller screen size based on the devicePixelRatio https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio Your fix is totally valid, just that it reverts that the resize 50px offset for iOS.
There is no preview environment, but I've committed the change directly to your branch. I need to do a real testing on iOS again, but then we could get this in from my side 👍 |
|
As the fix is valid from your side, push it (when CI is ready) |
|
can the MR get to master? |
|
/backport to stable4 |
|
/backport to stable3.8 |
|
The backport to stable4 failed. Please do this backport manually. |
|
/backport to stable22 |
|
The backport to stable22 failed. Please do this backport manually. |
|
/backport to stable4 |
Signed-off-by: Andreas-Kainz [email protected]
Summary
richdocumentframe use 50px less than screen height, which cause ain issue on mobile.
Before
After