wireit
wireit copied to clipboard
Nested editor terminal drag fix
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.
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.