wireit icon indicating copy to clipboard operation
wireit copied to clipboard

Nested editor terminal drag fix

Open rrlevering opened this issue 15 years ago • 1 comments

I'd advise changing Terminal.js:251 to something like:

} while ( YAHOO.util.Dom.hasClass(obj, "yui-layout-doc") );

or some other more elegant way to check the outermost element of the editor. Otherwise if you nest the editor in some other structure this position calculation is wrong.

rrlevering avatar Oct 22 '10 00:10 rrlevering

In fact, the loop itself is incorrect in that it does the offsetParent jump twice in a row. I think you just get lucky with the DOM structure.

rrlevering avatar Oct 22 '10 00:10 rrlevering