Grid, Combo and probably others broken in FireFox 3.6

22 views
Skip to first unread message

mattfromg...@gmail.com

unread,
Feb 20, 2010, 10:03:40 PM2/20/10
to completeui
FireFox 3.6 changes alot of behaviors from 3.5.x. The Combo and Grid
dont work properly at all.

One problem is that FireFox no longer supports the
document.getBoxObjectFor method. Toolkit and Combo use this and break
from that. I found a way to add the function to make those calls
work, which helps the Grid to ALMOST function properly, but there are
still problems. One thing I am seeing in the FireBug console over and
over again is:

XUL box for div element contained an inline #text child, forcing all
its children to be wrapped in a block.

Any hope this will get addressed soon?

kstan_79

unread,
Apr 13, 2010, 8:43:18 AM4/13/10
to completeui
Hi mattfromgeorgla2,

I'm facing same problem, do you have any solution? If possible can you
tell me how your add the function back?
Regards,
Ks Tan

On Feb 21, 11:03 am, "mattfromgeorgia2...@gmail.com"

kstan_79

unread,
Apr 15, 2010, 12:45:05 PM4/15/10
to completeui
Me too. can send me the solution for add the function back?

PnzrDrgoon

unread,
Apr 15, 2010, 1:39:41 PM4/15/10
to completeui
FireFox 3.6 removed support for getBoxObjectFor.

Put this snippet of code in your JavaScript and you'll be fine:

if (!document.getBoxObjectFor) {
document.getBoxObjectFor = function(el) {
if (!(el instanceof HTMLElement)) {
return;
} //else:
var b = el.getBoundingClientRect(), c = el.offsetParent instanceof
HTMLTableElement, p = el,
x = sx = b.left - (c ? 0 : el.offsetLeft), y = sy = b.top - (c ?
0 : el.offsetTop), w = window;
while (!(p instanceof HTMLHtmlElement)) {
sx += p.scrollLeft;
sy += p.scrollTop;
p = p.parentNode;
}
return { x: sx, y: sy, width: Math.round(b.width), height:
Math.round(b.height),
element: el, firstChild: el, lastChild: el, previousSibling:
null, nextSibling: null, parentBox: el.parentNode,
screenX: x + w.screenX + (w.outerWidth - w.innerWidth) / 2,
screenY: y + w.screenY + (w.outerHeight - w.innerHeight) / 2
};
};

Deep Garcha

unread,
Apr 15, 2010, 1:36:04 PM4/15/10
to compl...@googlegroups.com
Check this link: http://community.infragistics.com/forums/p/36753/218073.aspx

--
You received this message because you are subscribed to the Google Groups "completeui" group.
To post to this group, send email to compl...@googlegroups.com.
To unsubscribe from this group, send email to completeui+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/completeui?hl=en.




--
Deep Garcha

kstan_79

unread,
Apr 16, 2010, 1:14:30 AM4/16/10
to completeui
Currently this project abandom? I guess this fix can applied in the
their trunk future. How I found that there is no update of the code
quite long time already. :(
> > completeui+...@googlegroups.com<completeui%2Bunsu...@googlegroups.com>
> > .

kstan_79

unread,
Apr 20, 2010, 6:02:24 AM4/20/10
to completeui
Seems like their official website have running well grid for firefox
3.6. I notice using their toolkit.js solve the problem.

kstan_79

unread,
Apr 21, 2010, 12:58:31 AM4/21/10
to completeui
it fix at my pc. now work well. Parent/child grid too.
Reply all
Reply to author
Forward
0 new messages