strange values reported by window.innerWidth on startup during device rotate
Opened this issue · 1 comments
Kra-Kra commented
Steps to reproduce on dev alpha b:
- start bbui app
- rotate the device while startup logo is displayed
- once the app is started, you will see that font size is much smaller then expected
Explanation:
We have found that in this scenario window.innerWidth and window.innerHeight return unexpected values during bbui init call.
Depending on the rotation, you can get the following values:
window.inner: 1024 x 1707, screen: 768 x 1280
window.inner: 1024 x 615, screen: 1280 x 768
In this scenario bbui cannot determine correctly screen size and setup the correct CSS styles.
Some more details can be found in bbui issue: