-
26 Feb 2011 12:19 AM #1
[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:
Either that's an incorrect docs description and defaultMargins does not accept a string value, or this is a bug: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:
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:// Use the item's margin/margins specification, or margins = item.margins || item.margin || Ext.apply({}, this.defaultMargins);
Fix: Take out the Ext.apply().Code:Ext.applyIf(margins, itemEl.getMargin());
Code:// Use the item's margin/margins specification, or margins = item.margins || item.margin || this.defaultMargins;
-
26 Feb 2011 8:00 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
This has already been addressed for the next release.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[CLOSED]hboxes's containers's height not set properly - 1.0
By choco in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 29 Nov 2010, 6:50 AM -
[CLOSED] Charts not fitting in containers - labels cut off
By The_Jackal in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 17 Dec 2009, 4:37 PM -
[CLOSED-350]CheckboxGroup creates nested Panels instead of nested Containers.
By Animal in forum Ext 3.x: BugsReplies: 1Last Post: 13 Nov 2009, 12:22 PM -
[OPEN][2.x] Element.insertFirst does not accept a string as a DomHelper spec
By Animal in forum Ext 2.x: BugsReplies: 2Last Post: 17 Apr 2009, 2:43 AM -
[CLOSED] Issues with ScriptTagProxy, will not accept a callback name
By harjeet_sh in forum Ext GWT: Bugs (1.x)Replies: 6Last Post: 16 Jan 2009, 11:23 AM


Reply With Quote