|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
TableLayout.isValidParent currently always returns true, making it impossible to move components to a table layout (example here).
Suggested fix: Ext.override(Ext.layout.TableLayout, {
renderItem : function(c, position, target){
if(c && !c.rendered){
c.render(this.getNextCell(c));
this.configureItem(c, position);
}else if(c && !this.isValidParent(c, target)){
var container = this.getNextCell(c);
container.insertBefore(c.getDomPositionEl().dom, null);
c.container = Ext.get(container);
this.configureItem(c, position);
}
},
isValidParent : function(c, target){
return c.getDomPositionEl().up('table.x-table-layout', 5).dom.parentNode === (target.dom || target);
}
});
__________________
Condor
|
|
#2
|
||||
|
||||
|
*** Bump ***
__________________
Condor
|
|
#3
|
||||
|
||||
|
+1
isValidParent is a neglected necessity for layouts which allow dynamic movement of rendered items.
__________________
ExtJs forum volunteer. No official connection to the Ext Company. I do not speak for them. ExtJs consultancy offered. £ 50/hour. Evenings+weekends. the_bagbournes@btinternet.com Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu Read the docs too: http://extjs.com/deploy/dev/docs/ See Saki's samples: http://examples.extjs.eu/ Build your own Ext: http://extjs.com/products/extjs/build/ Scope: http://extjs.com/forum/showthread.ph...642#post257642 |
|
#4
|
||||
|
||||
|
Fix applied to svn in rev #5411 for patch release 3.0.3.
|
|
#5
|
|||
|
|||
|
I have problems with 3.0.3 table layout implementation.
I create many panels with table layout; after some creation (5 or 6) Safari and IE browsers return error on the line: return c.getDomPositionEl().up('table', 5).dom.parentNode === (target.dom || target);
With 3.0.0 I have no problem and I saw that this code is new for 3.0.3. Any help? |
|
#6
|
||||
|
||||
|
Could you post a layout that produces this error?
__________________
Condor
|
|
#7
|
|||
|
|||
|
With new tests, I realized that the problem arise only using Ext.ux.ManagedIFrame.Panel
I'm switching to thread http://www.extjs.com/forum/showthread.php?p=405272 Thanks. Moved again to thread http://www.extjs.com/forum/showthread.php?p=405830 |
![]() |
| Thread Tools | |
|
|