Roo/bootstrap/DocumentViewer.js
authoredward <edward@roojs.com>
Wed, 17 Feb 2016 07:15:33 +0000 (15:15 +0800)
committeredward <edward@roojs.com>
Wed, 17 Feb 2016 07:15:33 +0000 (15:15 +0800)
Roo/bootstrap/DocumentViewer.js

index ae69a48..b520c99 100644 (file)
@@ -93,14 +93,16 @@ Roo.extend(Roo.bootstrap.DocumentViewer, Roo.bootstrap.Component,  {
         this.trashBtn = this.el.select('.roo-document-viewer-trash', true).first();
         this.trashBtn.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block';
         
-        var _this = this;
-        
-        window.addEventListener("resize", function() { _this.resize(); } );
+        this.setThumbBoxPosition();
         
         this.bodyEl.on('click', this.onClick, this);
         
         this.trashBtn.on('click', this.onTrash, this);
         
+        var _this = this;
+        
+        window.addEventListener("resize", function() { _this.resize(); } );
+        
         this.fireEvent('initial', this);