File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div class =" q-layout-padding bg-yellow" >
3+ <div v-for =" i in 200" :key =" i" class =" text-subtitle2" >Row {{ i }}</div >
4+ <div class =" fixed-center" >{{ $q.screen.height }}</div >
5+ <div class =" fixed" style =" left : 0 ; right : 0 ; height : 3px ; background : red " :style =" { top: `${$q.screen.height - 5}px` }" />
6+ </div >
7+ </template >
Original file line number Diff line number Diff line change 11import Vue from 'vue'
22
3- import { isSSR , fromSSR } from './Platform.js'
3+ import { isSSR , fromSSR , client } from './Platform.js'
44import { listenOpts , noop } from '../utils/event.js'
55import debounce from '../utils/debounce.js'
66
@@ -48,8 +48,11 @@ export default {
4848 }
4949
5050 const { visualViewport } = window
51- const getSize = visualViewport === void 0
52- ? ( ) => [ window . innerWidth , window . innerHeight ]
51+ const getSize = visualViewport === void 0 || client . is . mobile === true
52+ ? ( ) => [
53+ Math . max ( window . innerWidth , document . scrollingElement . clientWidth ) ,
54+ Math . max ( window . innerHeight , document . scrollingElement . clientHeight )
55+ ]
5356 : ( ) => [
5457 visualViewport . width * visualViewport . scale + window . innerWidth - document . scrollingElement . clientWidth ,
5558 visualViewport . height * visualViewport . scale + window . innerHeight - document . scrollingElement . clientHeight
You can’t perform that action at this time.
0 commit comments