1. #1
    Ext User dotnetCarpenter's Avatar
    Join Date
    Mar 2007
    Location
    Copenhagen, Denmark
    Posts
    271
    Vote Rating
    0
    dotnetCarpenter is on a distinguished road

      0  

    Default [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.
    Code:
    isBorderBox : function(){
    	return noBoxAdjust[this.dom.tagName.toLowerCase()] || Ext.isBorderBox;
    }
    I don't know why the OR is recursive...

  2. #2
    Ext User dotnetCarpenter's Avatar
    Join Date
    Mar 2007
    Location
    Copenhagen, Denmark
    Posts
    271
    Vote Rating
    0
    dotnetCarpenter is on a distinguished road

      0  

    Default


    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

  3. #3
    Ext User dotnetCarpenter's Avatar
    Join Date
    Mar 2007
    Location
    Copenhagen, Denmark
    Posts
    271
    Vote Rating
    0
    dotnetCarpenter is on a distinguished road

      0  

    Default


    {bump}
    no - I do not check my PMs that often
    but I do answer