View Full Version : Overrite Ext.panel.Proxy show method?

4 Jun 2012, 2:40 AM

how to define custom draggable panelīs Ext.panel.Proxy show method? Or some before, after drag events? I need to do some tricks with panel height when showing panelīs drop target area in portal example http://docs.sencha.com/ext-js/4-1/#!/example/portal/portal.html

Ext.define('Ext.app.Portlet', {
extend: 'Ext.panel.Panel',
alias: 'widget.portlet',
layout: 'fit',
anchor: '100%',
closable: true,
collapsible: true,
animCollapse: true,
draggable: true,
cls: 'x-portlet',


Thank for any ideas.

7 Jun 2012, 1:20 PM
Using Ext.define it's easy to override a method. Just specify it like you did for layout.