Results 1 to 2 of 2

Thread: Window contents appear only on first time

  1. #1
    Sencha User
    Join Date
    Jun 2007
    Posts
    35
    Vote Rating
    0
      0  

    Default Window contents appear only on first time

    Code:
    function loadPeriods(node)
    {
    	if (!Ext.getCmp(node.text)) {
    		var periodWin = new Ext.Window({
    			title		: '<p align="center">'+node.text+'</p>',
    			closable	: true,
    			id			: node.text,
    			draggable	: false,
    			modal		: true,
    			layout		:'fit',
    			width		: 400,
    			height		: 350,
    			plain		: true,
    			closeaction	: 'hide',
    			items		: [{
    				xtype : 'panel',
    				autoHeight: true,
    				items : [periodGrid, periodForm]
    			}]
    		});
    		periodDS.load();
    		periodWin.show();
    	}
    }
    First time the window is loaded


    The second time the window is loaded

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    closeaction -> closeAction

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •