modify horizontal padding on image
authorAlan Knowles <alan@roojs.com>
Wed, 9 Mar 2022 06:49:14 +0000 (14:49 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Mar 2022 06:49:14 +0000 (14:49 +0800)
Roo/htmleditor/BlockFigure.js

index 16b441c..8bc7f8e 100644 (file)
@@ -327,7 +327,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
                 maxWidth :  this.align == 'center' ? '100% !important' : (this.width + ' !important'),
                 width : this.align == 'center' ? '100%' : this.width,
                 margin:  '0px',
-                padding: '10px 0',
+                padding: this.align == 'center' ? '10px 0' : '0',
                 textAlign : this.align   // seems to work for email..
                 
             },