feat(toolkit): use 100% as default height / width

This commit is contained in:
Nico Rehwaldt 2014-11-20 14:31:00 +01:00
parent 2707fc8858
commit 90513e94b4

View File

@ -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);