PDA

View Full Version : Adding container to container



mirkotus
23 Jan 2014, 5:19 AM
I am having difficulties with very strange problem. My Dynamically created container doesn't get drawn into an exsisting one.



var patientContainer = Ext.create('Ext.container.Container', { id:'patientContainer'+ rec.data.patientId, style: { borderColor:'#000000', borderStyle:'solid', borderWidth:'1px' } });

//exsisting container


cont.add(patientContainer); cont.doLayout(); The value fr container id is present. I have also checked there is nothing wrong with the exsisting container cont Am I missing something?

tobiu
23 Jan 2014, 8:35 AM
there should be no need to manually call doLayout.

what i would do is adding a layout to the parent container (e.g. fit).