-
18 May 2010 10:58 AM #1
Bug: Ext.Panel margin, padding, border
Bug: Ext.Panel margin, padding, border
There is a bug if you add one of the following properties to a Ext.Panel:
- margin
- padding
- padding
example:
reason:PHP Code:...
if (this.padding != undefined) {
bodyCfg.style +=
'padding: ' +
Ext.Element.parseBox((this.padding === true) ? 5
: this.padding) + ';';
}
...
returns an object but it must be a string for the style string concatenationPHP Code:Ext.Element.parseBox()
result:
the styles for padding, margin or border are not added to the Panel
testscript:
PHP Code:Ext.onReady( function() {
new Ext.Panel({
fullscreen: true,
renderTo: Ext.getBody(),
padding: 20,
border: 10,
margin: 35,
html: 'padding test'
});
});
trainings / workshops / consulting: Sencha Touch / Ext JS
Profile on SenchaDevs
www: http://www.nils-dehl.de
twitter: nilsdehl
meetup: Sencha Touch / Ext JS Meetup Frankfurt
videos: http://vimeo.com/album/1621422
conference photos: http://www.flickr.com/photos/nils-dehl/
-
18 May 2010 11:08 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 5
Hey Nils,
Thanks for the report. I haven't really looked into / used the padding / border / margin properties on components. I usually set them in CSS which is where it belong imo. I will make sure they work in an upcoming release though. Note: if you are using margin on a panel that is docked, it won't take those margins into account yet.
-
18 May 2010 11:13 AM #3
trainings / workshops / consulting: Sencha Touch / Ext JS
Profile on SenchaDevs
www: http://www.nils-dehl.de
twitter: nilsdehl
meetup: Sencha Touch / Ext JS Meetup Frankfurt
videos: http://vimeo.com/album/1621422
conference photos: http://www.flickr.com/photos/nils-dehl/
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote

