Skip to content

Commit

Permalink
fix(quasar): Set $q.screen.height in update (#3179)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan authored and rstoenescu committed Feb 8, 2019
1 parent 4a19c30 commit 295bf5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quasar/dev/components/web-tests/a.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="q-layout-padding">
<span>AAA</span>
<div>{{ $q.screen.height }} / {{ $q.screen.width }}</div>
<q-btn @click="$router.replace('/web-tests/b')">Go to B</q-btn>
</div>
</template>
Expand Down
3 changes: 2 additions & 1 deletion quasar/src/plugins/Screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default {
}
}

this.height = h
this.width = w

this.gt.xs = w >= s.sm
Expand Down Expand Up @@ -112,7 +113,7 @@ export default {

if (Object.keys(updateSizes).length > 0) {
this.setSizes(updateSizes)
updateSizes = null
updateSizes = {}
}
else {
update()
Expand Down

0 comments on commit 295bf5f

Please sign in to comment.