Comments (1)
The "orientationchange" event is dispatched before the rendering. After the event has been dispatched, the browser has to do an animation and render the page.
The next solution is not perfect but solves the problem:
https://stackoverflow.com/questions/9929368/how-do-i-get-the-new-dimensions-of-an-element-after-it-resizes-due-to-a-screen
from current-device.
Related Issues (20)
- Lots of android device recognized as blackberry HOT 2
- Add support for all-contributors spec HOT 4
- walkOnChangeOrientationList : for...in on changeOrientationList enumerates inherited properties. HOT 1
- New iPadOS detection in Safari HOT 2
- iPad is identified as macOS HOT 1
- Uncaught TypeError: changeOrientationList[index] is not a function HOT 3
- Type definition file not included in package HOT 2
- device.cordova() returns undefined instead of true/false
- ON IPAD 13 it is showing Desktop should be tablet
- Modernize build & publish workflow
- add macos in types HOT 1
- noConflict typescript issue
- Can you add resizing function?
- Dependency Dashboard
- Cannot assign to read only property 'orientation' of object HOT 1
- can we add support for 8inch Fold-out mobile
- 在华为平板上无法判断类型为平板
- iphone 6S running iOS 15.5 - Safari identifies as ( Tablet running ios )
- Orientation not working properly in Safari on iOS 16 HOT 1
- Lack of UA judgment for harmonyos.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from current-device.