PDA

View Full Version : [OPEN] [#276] [2.2 Trunk Bug] Mouseover tab section titles in grouptabpanel exception



michaeld
Jun 13, 2013, 12:51 AM
I'm afraid I cannot easily produce a test for this, but I am getting consistent TypeError exceptions because Cannot call method 'addCls' of null in Ext.view.Table of extjs 4.2.

It traps while trying to set setHightlightedItem


setHighlightedItem: function(item) {
var me = this,
highlighted = me.highlightedItem;


if (highlighted && me.el.isAncestor(highlighted) && me.isRowStyleFirst(highlighted)) {
me.getRowStyleTableEl(highlighted).removeCls(me.ta bleOverFirstCls);
}


if (item && me.isRowStyleFirst(item)) {
me.getRowStyleTableEl(item).addCls(me.tableOverFir stCls);
Uncaught TypeError: Cannot call method 'addCls' of null (repeated 2 times)



}


me.callParent(arguments);
},


It also fails on removeCls when you click another tab in onRowDeselect.

If it helps, i can provide a website link in private where this exception appears.

Baidaly
Jun 13, 2013, 2:52 AM
Hello!

It's difficult to say something certain without sample. If there is no other option we can investigate your site. Please, send its address in Private to me and Daniil.

michaeld
Jun 13, 2013, 4:36 AM
I sent the message to daniil. You do not accept private msgs.

Daniil
Jun 13, 2013, 4:51 AM
Hi,

Our policy is keep public as much as possible. Please clarify cannot that link be posted here?

michaeld
Jun 13, 2013, 6:33 AM
I don't mind any findings getting publicly posted or resolutions. I just can't post the url to my site on a google indexed page till we are live. I will attempt to come up with a sample if you can't use the link I send you privately to detect the problem. I'm confident it's an extjs bug though. Judging from the javascript, the item being passed is correct and valid, but it can't find the table component from the el, and that's why it's getting back null.

Daniil
Jun 13, 2013, 6:44 AM
I just can't post the url to my site on a google indexed page till we are live.

Fair enough.


I will attempt to come up with a sample

Yes, a test case posted here would be good. But, please, wait till I check the link and try to understand and reproduce the problem with a simple test case. If success, I will post it here and it all will be OK.

michaeld
Jun 13, 2013, 11:34 AM
Thanks. Let me know when you have checked into it then.

Daniil
Jun 13, 2013, 3:29 PM
I think I am reproducing the same "Cannot call method 'addCls' of null" issue with this example running it with the latest Ext.NET from the SVN trunk.
http://examples2.ext.net/#/TabPanel/GroupTabPanel/Overview/

So, we will investigate. I feel the problem is related to this one.
http://forums.ext.net/showthread.php?25125

By the way, there is also the "Layout run failed" error with your online page. It might be a separate problem.

michaeld
Jun 13, 2013, 10:01 PM
I noticed vladimir posted the patch from http://www.sencha.com/forum/showthread.php?264961

It didn't fix the problem related to this thread.

michaeld
Jun 14, 2013, 12:04 AM
Actually I never noticed the Layout run failed at all before this latest build.

I'm having a really hard time trying to diagnose what is causing that one. Any thoughts?

Daniil
Jun 14, 2013, 5:40 AM
I noticed vladimir posted the patch from http://www.sencha.com/forum/showthread.php?264961

It didn't fix the problem related to this thread.

Confirm. There is another fix for that case.
http://www.sencha.com/forum/showthread.php?264657#post970557

I just committed it to the SVN trunk.

Created an Issue to monitor the related Sencha threads to, eventually, remove the temporary fix.
https://github.com/extnet/Ext.NET/issues/276


Actually I never noticed the Layout run failed at all before this latest build.

I'm having a really hard time trying to diagnose what is causing that one. Any thoughts?

Please apply the fix to your online example, then start a new forum thread. Just to do not mix the topics.

michaeld
Jun 14, 2013, 9:23 AM
............

michaeld
Jun 14, 2013, 9:29 AM
This recent update fixed the addCls/removeCls issue. It seems to be working, so that leaves now the Layout run fail issue.


I spent most of my day trying to track down the Layout run failed issue. I can't figure it out. I'm pretty sure its related to large numbers of menupanels inside portlets inside grouped panels. I already spent a awhile deconstructing my dynamic control into a static demo to figure out exactly where and when it begins. I cannot reproduce it yet.

I also stepped through run layout controls in extjs. It's intentionally designed to keep retrying till controls layout properly and for whatever reason, one of the controls can't resolve the vertical so it never sets done. And if done isn't set, it bails out after a watchDog counter has countdown. I haven't been able to trap it in IE at all. I only see it in chrome.

I'm at a loss what to do from here. Should I try to keep making the demo exactly match? Or can we simply check into it from the snipped of produced extjs code? Thoughts?

Daniil
Jun 14, 2013, 10:30 AM
Could you, please, follow this?


Please apply the fix to your online example, then start a new forum thread. Just to do not mix the topics.

Daniil
Jun 17, 2013, 8:36 AM
Thank you for starting a new thread. Here it is for references:
http://forums.ext.net/showthread.php?25289