Redraw DocumentView in #setViewBounds().

This commit is contained in:
Jürg Lehni 2011-05-16 12:45:49 +01:00
parent 671d790068
commit 0504b99af8

View file

@ -47,7 +47,6 @@ var DocumentView = this.DocumentView = Base.extend({
offset = DomElement.getOffset(canvas);
that.setViewSize(
DomElement.getWindowSize().subtract(offset));
that.draw();
}
});
} else {
@ -109,6 +108,7 @@ var DocumentView = this.DocumentView = Base.extend({
}
// Force recalculation
this._bounds = null;
this.draw();
},
getViewSize: function() {