mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-17 11:26:42 +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'
|
||||
}).appendTo(parent);
|
||||
|
||||
_.forEach([ 'width', 'height' ], function(a) {
|
||||
if (options[a]) {
|
||||
container.css(a, options[a]);
|
||||
}
|
||||
});
|
||||
container.css('width', options.width || '100%');
|
||||
container.css('height', options.height || '100%');
|
||||
|
||||
// unwrap jquery
|
||||
this.container = container.get(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user