Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Sep 2010
    Posts
    5
    Vote Rating
    0
    txabi_ is on a distinguished road

      0  

    Exclamation [FIXED-477] Element.unitizeBox only works with pixels

    [FIXED-477] Element.unitizeBox only works with pixels


    Hi Guys,


    I think there's a bug in Element.unitizeBox that prevents the use of any other unit other than pixels.

    Here's the method:

    Code:
    unitizeBox : function(box){
            var A = this.addUnits,
                B = this.parseBox(box);
                
            return A( B.top ) + ' ' +
                   A( B.right ) + ' ' +
                   A( B.bottom ) + ' ' +
                   A( B.left );
            
        }
    The problem is that the object that comes out of parseBox contains only numbers, and not units, so when you send a number into A, A.K.A. addUnits, you will always get pixels as the unit.

    Please take a look at this guys

    Thanks!

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Thanks for the bug report.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    This has been implemented and will be part of release 1.0.1.

Similar Threads

  1. Replies: 8
    Last Post: 28 Jan 2010, 11:59 PM
  2. ComponentMgr.get works Element.get does not
    By dcwmark in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 17 Dec 2009, 7:06 PM
  3. Replies: 3
    Last Post: 8 Feb 2009, 1:44 AM
  4. ˙ɹǝʇndɯoɔ ʎɯ ɥʇıʍ ƃuoɹʍ sı ƃuıɥʇǝɯos
    By TheBuzzer in forum Community Discussion
    Replies: 2
    Last Post: 25 Nov 2008, 1:44 PM

Thread Participants: 2