Jump to content

Drag Form


jahlxx

Recommended Posts

Hi,

 

Workaround for Minimize-Maximize.

 

form -> ClientEvents -> UniEvents -> Ext.window.Window -> window.beforeInit

  sender.constrainHeader = true;
  config.tools = [{
        type: 'restore',
        handler: function (evt, toolEl, owner, tool) {
                var window = owner.up('window');
                window.setWidth(1182);  //  <-- Your actual form width
                window.expand('', false);
                window.center();
            }
    }];

form -> ClientEvents -> ExtEvents -> Ext.window.Window -> window.minimize

  sender.collapse();
  sender.setWidth(150);
  sender.alignTo(Ext.getBody(), 'bl-bl');

form -> ClientEvents -> UniEvents -> Ext.window.Window -> window.beforeInit

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...