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 @@ -523,11 +523,19 @@ var WindowPrototype = exports.Window.prototype = Object.create(_globals.core.RAI
523523WindowPrototype . constructor = exports . Window
524524
525525WindowPrototype . width = function ( ) {
526- return this . dom . innerWidth
526+ if ( navigator . userAgent . toLocaleLowerCase ( ) . match ( 'android' ) ) {
527+ return Math . floor ( this . dom . innerWidth * this . dom . devicePixelRatio ) ;
528+ } else {
529+ return this . dom . innerWidth ;
530+ }
527531}
528532
529533WindowPrototype . height = function ( ) {
530- return this . dom . innerHeight
534+ if ( navigator . userAgent . toLocaleLowerCase ( ) . match ( 'android' ) ) {
535+ return Math . floor ( this . dom . innerHeight * this . dom . devicePixelRatio ) ;
536+ } else {
537+ return this . dom . innerHeight ;
538+ }
531539}
532540
533541WindowPrototype . scrollY = function ( ) {
You can’t perform that action at this time.
0 commit comments