Skip to content

Commit 2bd305d

Browse files
committed
chore(QLayout): small tweaks
1 parent 6ba2202 commit 2bd305d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ui/src/components/layout/QLayout.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ export default Vue.extend({
9898

9999
totalWidth () {
100100
return this.width + this.scrollbarWidth
101+
},
102+
103+
classes () {
104+
return 'q-layout q-layout--' +
105+
(this.container === true ? 'containerized' : 'standard')
101106
}
102107
},
103108

@@ -107,8 +112,7 @@ export default Vue.extend({
107112

108113
render (h) {
109114
const layout = h('div', {
110-
staticClass: 'q-layout q-layout--' +
111-
(this.container === true ? 'containerized' : 'standard'),
115+
class: this.classes,
112116
style: this.style,
113117
on: this.$listeners
114118
}, mergeSlot([

0 commit comments

Comments
 (0)