Results 1 to 2 of 2

Thread: Component in a collapsed panel losing height value

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    185
    Answers
    6

    Default Component in a collapsed panel losing height value

    I have a collapsed panel calling other php file with a toolbar, if i change the collapsed config to false ext render the toolbar correctly but if collapsed is true when i expand this panel, toolbar doesn't render correctly, firebug returns the height of the toolbar with "6px".

    panel:
    Code:
    {
                region			: 'east',
    			id				: 'eastPanel',
    			title	 		: 'Panel',
                xtype			: 'panel',
    			autoWidth		: true,
    			collapsible		: true,
    			collapsed		: true,
    			titleCollapse	: true,
    			width			: 50,
    			//html			: '',
    			autoLoad: { 
    				url: 'camadas/lst_camadas.php', 
        			params: '', 
        			scripts: true
        		}
            },
    toolbar:
    Code:
    Ext.create('Ext.toolbar.Toolbar', {
    	id				: 'toolbarPlaca',
        renderTo		: 'toolbarPlaca',
    	autoWidth		: true,
    	height			: 28,
    	items			: [
    		'->',
    		{
    			text		: '<?=utf8_decode("options")?>',
    			iconCls		: 'gear_in',
    			menu		: [
    				{
    					text		: 'comands',
    					iconCls		: 'computer_go',
    					handler		: function(){
    						Ext.Msg.alert("<?=utf8_decode("Ateno")?>", "<?=utf8_decode("Comando Enviado!")?>");
    					}
    				}
    			]
    		}
    	]
    	
    });

    Thanks !

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    What version of ExtJS are you using? 4.07 or 4.1? Have you tested 4.1 if not?
    What is the layout of your parent container?

    We may need a small working example to replicate this.

    Regards,
    Scott.

Posting Permissions

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