Add width and height attributes on calendar view

issue9148
review250931003
This commit is contained in:
Cédric Krier committed 2020-04-01 23:58:49 +02:00
1 parent a54f3c1549
commit bea8ed5e2a
2 files changed
+11

No files matched your search

+4
View File
@@ -211,6 +211,10 @@ img.icon {
}
}
.content-box {
overflow-y: auto;
}
.list-form {
overflow-y: auto;
-moz-user-select: none;
+7
View File
@@ -66,6 +66,13 @@
eventClick: this.view.event_click.bind(this.view),
dayClick: this.view.day_click.bind(this.view),
});
if (attributes.height !== undefined) {
this.view.el.css('min-height', attributes.height + 'px');
}
if (attributes.width !== undefined) {
this.view.el.css('min-width', attributes.width + 'px');
}
},
_parse_field: function(node, attributes) {
this.view.fields.push(attributes.name);