Add width and height attributes on calendar view
issue9148 review250931003
This commit is contained in:
1 parent
a54f3c1549
commit
bea8ed5e2a
2 files changed
+11
No files matched your search
@@ -211,6 +211,10 @@ img.icon {
|
||||
}
|
||||
}
|
||||
|
||||
.content-box {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.list-form {
|
||||
overflow-y: auto;
|
||||
-moz-user-select: none;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user