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?
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"
On Feb 21, 11:03 am, "mattfromgeorgia2...@gmail.com"
<mattfromgeorgia2...@gmail.com> wrote:
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
};
};
--
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.