Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2007
    Posts
    15
    Vote Rating
    0
    kmiyashiro is on a distinguished road

      0  

    Default [CLOSED]defaultMargins for Box containers does not accept string value

    [CLOSED]defaultMargins for Box containers does not accept string value


    In Ext.layout.container.Box there is a property called defaultMargins, the documentation says that it must be an Object, but the description says:

    This property may also be specified as a string containing space-separated, numeric margin values. The order of the sides associated with each value matches the way CSS processes margin values:
    Either that's an incorrect docs description and defaultMargins does not accept a string value, or this is a bug:

    Code:
    // Use the item's margin/margins specification, or
    margins = item.margins || item.margin || Ext.apply({}, this.defaultMargins);
    Ext.apply({}, '10') will always return an empty object, which is then assigned the item's current margins which defeats the purpose of setting the defaultMargins.

    Code:
    Ext.applyIf(margins, itemEl.getMargin());
    Fix: Take out the Ext.apply().

    Code:
    // Use the item's margin/margins specification, or
    margins = item.margins || item.margin || this.defaultMargins;

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This has already been addressed for the next release.

Similar Threads

  1. [CLOSED]hboxes's containers's height not set properly - 1.0
    By choco in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 29 Nov 2010, 6:50 AM
  2. [CLOSED] Charts not fitting in containers - labels cut off
    By The_Jackal in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 17 Dec 2009, 4:37 PM
  3. Replies: 1
    Last Post: 13 Nov 2009, 12:22 PM
  4. Replies: 2
    Last Post: 17 Apr 2009, 2:43 AM
  5. Replies: 6
    Last Post: 16 Jan 2009, 11:23 AM

Thread Participants: 1