PDA

View Full Version : Error with setting height in Ext 4.1



rafaelrp
29 Mar 2012, 4:43 AM
Hello !

I'm having a problem with setting height in a component.

Firebug return me the following error

Ext.getDom(




Ext.getDom("frameMapa").height = heightCenterPanel;







And the breakpoint return me


Ext.getCmp("centerPanel").on("afterlayout",function(){
var heightCenterPanel = Ext.getCmp("centerPanel").getHeight();
var heightSouthPanel = Ext.getCmp("southPanel").getHeight();

Ext.getDom("frameMapa").height = heightCenterPanel;
document.getElementById("frameMapa").contentWindow.mapRoot.getDiv().style.height = heightCenterPanel;
Ext.getCmp("panelGrid").setHeight(heightSouthPanel-25);
//Ext.getCmp("panelCamadas").setHeight(heightCenterPanel-25);
});


Thanks !

mitchellsimoens
29 Mar 2012, 7:54 AM
Try:


Ext.get('frameMapa').setHeight(heightCenterPanel);