mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-20 04:38:07 +00:00
feat(toolkit): use 100% as default height / width
This commit is contained in:
parent
2707fc8858
commit
90513e94b4
@ -54,11 +54,8 @@ function Viewer(options) {
|
|||||||
position: 'relative'
|
position: 'relative'
|
||||||
}).appendTo(parent);
|
}).appendTo(parent);
|
||||||
|
|
||||||
_.forEach([ 'width', 'height' ], function(a) {
|
container.css('width', options.width || '100%');
|
||||||
if (options[a]) {
|
container.css('height', options.height || '100%');
|
||||||
container.css(a, options[a]);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// unwrap jquery
|
// unwrap jquery
|
||||||
this.container = container.get(0);
|
this.container = container.get(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user