Hi,

I'm experiencing some problems with a new table's headerrenderer I'm working
on.

After some investigation, I found that when  updateHeaderCell(cellInfo,
cellWidget) is called, the cellWidget passed in args is not my new
headerCell but the old qx.ui.table.headerrenderer.HeaderCell choosen by
default by the qx.ui.table.columnmodel.Basic columnmodel.

Just to explain a bit more my case, I didn't subclass the
qx.ui.table.columnmodel.Basic Model. I just reassigned the table's
headerrenderers for each column after the table's creation.

So, after some debugging, I saw that in the method  _updateContent of the
class qx.ui.table.pane.Header that there are some "cachedwidgets". 

I think the problem is that when I reassign some headerrenderers to
differents columns of an existing table, the cache isn't invalidated, so it
might throw some errors.

I also saw there's a method  _cleanUpCells in order to clean up the cache
but it is a protected one and anyway, I didn't see a call to this method in
qx.ui.table.headerrenderer.Default. So, I suspect that to be a bug.  

What do you think about it ?

Best,

BenoƮt.

PS: If I subclass the  qx.ui.table.columnmodel.Basic columnmodel by setting
my headerrenderer as default value, the problem disappears. So, I think I'll
use this temporary workaround before some more explanations or a fix (if
it's really a bug)...
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/possible-bug-in-qx-ui-table-pane-Header-tp5555625p5555625.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to