You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not 100% sure this is to be fixed, as Android recommend to not handle configuration changes manually anyways:
Caution: Handling the configuration change yourself can make it much more difficult to use alternative resources, because the system does not automatically apply them for you. This technique should be considered a last resort when you must avoid restarts due to a configuration change and is not recommended for most applications. https://developer.android.com/guide/topics/resources/runtime-changes#HandlingTheChange
However, this issue might surface in other legit situations like a resizable window on Chrome OS.
This is already supposed to work with this piece of JavaScript code, maybe there's an issue with Android.getViewportWidth():
Calling onViewportWidthChanged from the ResizeObserver seems to fix the problem. However, we loose the scroll progression as it is not restored by the web view. This needs more work.
Bug Report
What happened?
When rotating the device, EPUB columns get messed up if we don't recreate the
Activity
:Screen.Recording.2022-06-03.at.11.51.07.mov
Expected behavior
How to reproduce?
Activity
during screen rotations inAndroidManifest.xml
:Environment
develop
Testing device
Additional context
I'm not 100% sure this is to be fixed, as Android recommend to not handle configuration changes manually anyways:
However, this issue might surface in other legit situations like a resizable window on Chrome OS.
This is already supposed to work with this piece of JavaScript code, maybe there's an issue with
Android.getViewportWidth()
:kotlin-toolkit/readium/navigator/src/main/assets/_scripts/src/utils.js
Lines 67 to 79 in ce1c73e
The text was updated successfully, but these errors were encountered: