Skip to content

Commit bb330d0

Browse files
pdanpdanrstoenescu
authored andcommitted
close quasarframework#1766: Fix QLayout offset not updated on start (quasarframework#1770)
close quasarframework#1766
1 parent 58d419a commit bb330d0

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

dev/components/new-layout/new-layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export default {
233233
234234
headerReveal: false,
235235
footerReveal: false,
236-
leftOverlay: true,
236+
leftOverlay: false,
237237
rightOverlay: true,
238238
leftBehavior: 'default',
239239
rightBehavior: 'default',

src/components/layout/QLayoutDrawer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,8 @@ export default {
265265
},
266266
created () {
267267
this.layout.instances[this.side] = this
268-
if (this.onLayout) {
269-
this.__update('space', true)
270-
}
268+
this.__update('space', this.onLayout)
269+
this.__update('offset', this.offset)
271270

272271
this.$nextTick(() => {
273272
this.animateOverlay = true

src/components/layout/QLayoutFooter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
created () {
104104
this.layout.instances.footer = this
105105
this.__update('space', this.value)
106+
this.__update('offset', this.offset)
106107
},
107108
beforeDestroy () {
108109
if (this.layout.instances.footer === this) {

src/components/layout/QLayoutHeader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export default {
107107
created () {
108108
this.layout.instances.header = this
109109
this.__update('space', this.value)
110+
this.__update('offset', this.offset)
110111
},
111112
beforeDestroy () {
112113
if (this.layout.instances.header === this) {

0 commit comments

Comments
 (0)