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
Using the screen.mainScreen.widthPixels from "tns-core-modules/platform" inside the application orientationChanged
event returns the previous orientation's size.
Which platform(s) does your issue occur on?
Tested on Android
Please provide the following version numbers that your issue occurs with:
CLI: (run tns --version to fetch it)
Cross-platform modules: 4.2.0
Runtime(s): 4.2.0
Plugin(s): (look for the version number in the package.json file of your
project)
Please tell us how to recreate the issue in as much detail as possible.
Attach to the application's orientationChangedEvent and try to retrieve the screen's width in Pixels import * as applicationModule from 'tns-core-modules/application';
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?
Yes
Tell us about the problem
Using the
screen.mainScreen.widthPixels
from"tns-core-modules/platform"
inside the applicationorientationChanged
event returns the previous orientation's size.
Which platform(s) does your issue occur on?
Tested on Android
Please provide the following version numbers that your issue occurs with:
tns --version
to fetch it)package.json
file of yourproject)
Please tell us how to recreate the issue in as much detail as possible.
Attach to the application's
orientationChangedEvent
and try to retrieve the screen's width in Pixelsimport * as applicationModule from 'tns-core-modules/application';
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: