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
7
7
.cache /*
8
8
node_modules
9
9
.idea /
10
+ .vscode
10
11
test /qml /Output
11
12
test /build. *
12
13
test /.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
523
523
WindowPrototype . constructor = exports . Window
524
524
525
525
WindowPrototype . 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
+ }
527
531
}
528
532
529
533
WindowPrototype . 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
+ }
531
539
}
532
540
533
541
WindowPrototype . scrollY = function ( ) {
You can’t perform that action at this time.
0 commit comments