-
3 Feb 2011 8:52 AM #1
Re-rendering ".add"ed components
Re-rendering ".add"ed components
Hey,
Currently I'm adding a new card to a Panel by using:
However once it's added, the parent item (a floating panel) moves, but once the List item is clicked and rendered, the behaviour does not occur anymore.Code:c = nestedContacts.add({ height: 150, width: 300, itemId: id, html: rec.get('phone'), dockedItems: [{ xtype: 'toolbar', dock: 'top', items: [{ text: 'Back', ui: 'back', handler: function() { nestedContacts.setActiveItem(0, { type: 'slide', reverse: true }); } }] }] });
How can I force the layout as soon as the components are added?
I've tried:
But I get errors. (without comments of course)Code:added: function() { // c.doLayout(); // c.doComponentLayout(); }
James
-
4 Feb 2011 3:17 AM #2
Fixed.
I basically create a new Panel inside of its parent and add:
Works a treat.Code:renderTo: nestedContacts.el.dom.childNodes[0].id
Similar Threads
-
can't Preview Pictures in Projects & wraps " " around some elements in Components
By adhoul in forum Ext Designer: BugsReplies: 1Last Post: 12 Jul 2010, 7:19 AM -
[CLOSED][3.0] SetValue shows "valueField" instead of "displayField". mode "local".
By galdaka in forum Ext 3.x: BugsReplies: 3Last Post: 28 Oct 2009, 6:38 AM -
replace the "south" with the "new Ext.StatusBar" in "layout:'border'"
By ealpha in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 18 May 2008, 8:28 PM


Reply With Quote