Commit 1efc3b53 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix browser window resizing.

Resizing the browser window wasn't working due to a scope error on the
resize timeout.  Using Ext.Function.defer to be able to easily bind
scope to the deferred function.
parent 4049f16f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ Ext.define("Docs.App", {
        // Resize the main window and tree on resize
        window.onresize = Ext.bind(function() {
            if (!this.resizeTimeout) {
                this.resizeTimeout = setTimeout(this.resizeWindow, 100);
                this.resizeTimeout = Ext.Function.defer(this.resizeWindow, 100, this);
            }
        }, this);
    },