[mochikit] Re: getElementPosition versus Opera

2006-12-07 Thread troels knak-nielsen
Yep - it works. On 12/7/06, Thomas Hervé [EMAIL PROTECTED] wrote: I think it comes from an Opera bug for some element with a specific display. YUI already handles problem with 'inline', but I think there's also a problem with 'table-row'. Can you try the following patch: --- Style.js

[mochikit] insertSiblingNodesBefore question

2006-12-07 Thread jeffa
Have a question on using insertSiblingNodesBefore. My goal is it insert a 'new TR' before the first 'TR' in a table but getting an eror. Can someone point out the error of my ways? Thx, function addRow() { var table = $(partRows); var body = $(partRowsBody); var oldRow =

[mochikit] Re: insertSiblingNodesBefore question

2006-12-07 Thread Thomas Hervé
My guess is that it has nothing to do with insertSiblingNodesBefore. Where's your rowCount variable ? Does your table has an initial line ? Try to reduce it to a full reproductible example. -- Thomas --~--~-~--~~~---~--~~ You received this message because you

[mochikit] Re: insertSiblingNodesBefore question

2006-12-07 Thread jeffa
rowCount is a global variable, In my testing yes there are entries in the table but I know I'll have to make sure the table isn't empty. The reason I'm thinking I have a problem with how I use insertSiblingNodesBefore is if I use body.appendChild(newRow); everything works just works opposite of

[mochikit] Re: insertSiblingNodesBefore question

2006-12-07 Thread Martyn Smith
Perhaps you could add these two lines just before your call to insertSiblingNodesBefore ... logDebug(oldRow); logDebug(newRow); to ensure that you're actually passing what you _think_ you're passing to the function :) -- Martyn On 12/8/06, jeffa [EMAIL PROTECTED] wrote: rowCount is a global

[mochikit] MochiKit.Position.cumulativeOffset and the scrolling DIV

2006-12-07 Thread Martyn Smith
I've noticed that most browsers now appear to use offsetParent as something further up than their immediate parentNode. This is what cumulativeOffset uses to calculate real position on the page. There is a case where this doesn't work (and I noticed it while using MochiKig.DragAndDrop). If you