Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

strange values reported by window.innerWidth on startup during device rotate #661

Open
Kra-Kra opened this issue May 28, 2013 · 1 comment

Comments

@Kra-Kra
Copy link

Kra-Kra commented May 28, 2013

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:

blackberry/bbUI.js#874

@Kra-Kra
Copy link
Author

Kra-Kra commented Jun 3, 2013

Can somebody from WebWorks core team please review this problem ?

This issue combined with issue #665 makes it impossible to detect screen size / device model with OS 10.1 ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant