File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ app/qml.min.js
77.cache /*
88node_modules
99.idea /
10+ .vscode
1011test /qml /Output
1112test /build. *
1213test /.cache
Original file line number Diff line number Diff line change @@ -507,11 +507,19 @@ var WindowPrototype = exports.Window.prototype = Object.create(_globals.core.RAI
507507WindowPrototype . constructor = exports . Window
508508
509509WindowPrototype . width = function ( ) {
510- return this . dom . innerWidth
510+ if ( navigator . userAgent . toLocaleLowerCase ( ) . match ( 'android' ) ) {
511+ return Math . floor ( this . dom . innerWidth * this . dom . devicePixelRatio ) ;
512+ } else {
513+ return this . dom . innerWidth ;
514+ }
511515}
512516
513517WindowPrototype . height = function ( ) {
514- return this . dom . innerHeight
518+ if ( navigator . userAgent . toLocaleLowerCase ( ) . match ( 'android' ) ) {
519+ return Math . floor ( this . dom . innerHeight * this . dom . devicePixelRatio ) ;
520+ } else {
521+ return this . dom . innerHeight ;
522+ }
515523}
516524
517525WindowPrototype . scrollY = function ( ) {
You can’t perform that action at this time.
0 commit comments