-
7 May 2008 5:06 PM #1
[1.1.1] isBorderBox chokes on newline
[1.1.1] isBorderBox chokes on newline
isBorderBox chokes on newline
When a selection of elements is made from the DOM, e.g. Ext.Element.select. It often happens that newline characters get selected as well, i.e. the HTML has a newline between divs. If you try to use a method like setWidth the method will throw an exception.
isBorderBox is used internally by several Ext JS methods.
I don't know why the OR is recursive...Code:isBorderBox : function(){ return noBoxAdjust[this.dom.tagName.toLowerCase()] || Ext.isBorderBox; }
-
7 May 2008 5:09 PM #2
This behavior is noted with the YUI (2.2.0) library as Ext JS back end. Also when selecting elements in versions from 1.0.1 and below, newline characters was omitted and therefore not a problem.
Last edited by dotnetCarpenter; 7 May 2008 at 5:46 PM. Reason: YUI version added
-
30 May 2008 8:44 PM #3
{bump}
no - I do not check my PMs that often
but I do answer


Reply With Quote