-
Notifications
You must be signed in to change notification settings - Fork 22
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
No effect when device is landscape #7
Comments
You need to watch for Dimensions API |
I thought this would already be built-in! Without that, it doesn't make much sense |
I create this thing:
And i change minDeviceWidth, maxDeviceWidth on orientationchange(it works), but MediaQuery does not rebuild, how can i force rerender? |
I was having the same issue than @vonovak and I strongly agree that it makes no sense if that is not built-in. I am not talking about live changes on dimensions but at least static ones (ie: starting the app already in landscape mode). I was investigating a bit more and I found what causes the module to apply always portrait dimensions: In lib/api/utils/device.js the device width and hieght are defined as follows: That is, from my point of view, completely wrong since then your width is always the small one even when using your device in landscape. Replaching those lines by the default window width and height would make the app to work as expected.
|
Using MediaQueryDebug to watch my device params. When i invert my device to landscape, window params not change. So when i use он my tablet(1280*720), in landscape mode it show me same as in portraint. Did i do something wrong?
The text was updated successfully, but these errors were encountered: