Ext.panel.AbstractPanelView
クラスにはpadding
とbodyPadding
プロパティがあります。
どちらも同じように動作するようです。
違いは何ですか?
Ext.panel.AbstractPanelView
クラスにはpadding
とbodyPadding
プロパティがあります。
どちらも同じように動作するようです。
違いは何ですか?
ドキュメントによると: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.panel.Panel-cfg-bodyPadding
padding : Number/String
Specifies the padding for this component. The padding can be a single numeric value to apply to all sides or it can be a CSS style specification for each style, for example: '10 5 3 10'.
bodyPadding : Number/String
A shortcut for setting a padding style on the body element. The value can either be a number to be applied to all sides, or a normal css string describing padding.
したがって、違いは、どの要素のパディングが適用されるかです。