Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
Building an App : Removal of 'auto' from margin property
If I set the margin of a container to 0 auto (to center) and then from the command line, perform a sencha app build package, 'auto' is removed.
This results in the container being aligned to the left.
-
Sencha User
Also, I've just noticed that if I enter an 'em' figure for the padding property, this get converted to 'px'.
My new rule of thumb then, is to not use the padding and margin attributes and just use css.
-
testing with 2.0.1.1 and 2.0.2 the building of the source doesn't remove the '0 auto' for me, it leaves it alone as it should.
Since layouts are CSS based, I would do almost everything with CSS, not use style, padding, margin but use cls.
-
Sencha User
In 2.1 I found other interesting code
Code:
Ext.define('Ext.Component')
...........................................
applyWidth: function(width) {
return this.filterLengthValue(width);
},
...........................................
filterLengthValue: function(value) {
if (value === 'auto' || (!value && value !== 0)) {
return null;
}
return value;
},
What is the problem with "auto" attribute?