Commit a9991311 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Move tabs resizing from controller to view.

It makes sense for the tabs component to adjust itself when it's resized,
rather than having a controller tell it.
parent a9eaee57
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -102,9 +102,6 @@ Ext.define('Docs.controller.Tabs', {
                        }
                    });
                },
                resize: function() {
                    Ext.getCmp('doctabs').refresh();
                },
                scope: this
            }
        });
+2 −0
Original line number Diff line number Diff line
@@ -51,6 +51,8 @@ Ext.define('Docs.view.Tabs', {
            '</div>'
        );

        this.on("resize", this.refresh, this);

        this.callParent();
    },