{\r
type : 'hbox',\r
widths : [ '60%', '40%' ],\r
- padding : 0,\r
+ padding : 1,\r
children : [\r
{\r
type : 'text',\r
label : langCommon.browseServer,\r
style : 'display:inline-block;margin-top:10px;',\r
hidden : true,\r
- filebrowser : 'bg:bgImage'\r
+ filebrowser : 'design:bgImage'\r
}\r
]\r
},\r
type : 'text',\r
id : 'marginTop',\r
label : lang.marginTop,\r
- style : 'width: 80px; text-align: center; margin: 0px auto',\r
- controlStyle : 'text-align: center',\r
+ style : 'width: 80px; text-align: center',\r
+ align : 'center',\r
+ inputStyle : 'text-align: center',\r
setup : function( doc, html, head, body )\r
{\r
this.setValue( body.getStyle( 'margin-top' ) || body.getAttribute( 'margintop' ) || '' );\r
},\r
- commit : commitMargin( 'top' ),\r
- onLoad : function()\r
- {\r
- this.getElement().getParent().setStyle( 'text-align', 'center' );\r
- }\r
+ commit : commitMargin( 'top' )\r
},\r
{\r
type : 'hbox',\r
type : 'text',\r
id : 'marginLeft',\r
label : lang.marginLeft,\r
- style : 'width: 80px; text-align: center; margin: 0px auto',\r
- controlStyle : 'text-align: center',\r
+ style : 'width: 80px; text-align: center',\r
+ align : 'center',\r
+ inputStyle : 'text-align: center',\r
setup : function( doc, html, head, body )\r
{\r
this.setValue( body.getStyle( 'margin-left' ) || body.getAttribute( 'marginleft' ) || '' );\r
},\r
- commit : commitMargin( 'left' ),\r
- onLoad : function()\r
- {\r
- this.getElement().getParent().setStyle( 'text-align', 'center' );\r
- }\r
+ commit : commitMargin( 'left' )\r
},\r
{\r
type : 'text',\r
id : 'marginRight',\r
label : lang.marginRight,\r
- style : 'width: 80px; text-align: center; margin: 0px auto',\r
- controlStyle : 'text-align: center',\r
+ style : 'width: 80px; text-align: center',\r
+ align : 'center',\r
+ inputStyle : 'text-align: center',\r
setup : function( doc, html, head, body )\r
{\r
this.setValue( body.getStyle( 'margin-right' ) || body.getAttribute( 'marginright' ) || '' );\r
},\r
- commit : commitMargin( 'right' ),\r
- onLoad : function()\r
- {\r
- this.getElement().getParent().setStyle( 'text-align', 'center' );\r
- }\r
+ commit : commitMargin( 'right' )\r
}\r
]\r
},\r
type : 'text',\r
id : 'marginBottom',\r
label : lang.marginBottom,\r
- style : 'width: 80px; text-align: center; margin: 0px auto',\r
- controlStyle : 'text-align: center',\r
+ style : 'width: 80px; text-align: center',\r
+ align : 'center',\r
+ inputStyle : 'text-align: center',\r
setup : function( doc, html, head, body )\r
{\r
this.setValue( body.getStyle( 'margin-bottom' ) || body.getAttribute( 'marginbottom' ) || '' );\r
},\r
- commit : commitMargin( 'bottom' ),\r
- onLoad : function()\r
- {\r
- this.getElement().getParent().setStyle( 'text-align', 'center' );\r
- }\r
+ commit : commitMargin( 'bottom' )\r
}\r
]\r
}\r