From 0504b99af814608e14554cf117f804043e836731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 16 May 2011 12:45:49 +0100 Subject: [PATCH] Redraw DocumentView in #setViewBounds(). --- src/document/DocumentView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document/DocumentView.js b/src/document/DocumentView.js index 47f2967e..da3911c3 100644 --- a/src/document/DocumentView.js +++ b/src/document/DocumentView.js @@ -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() {