Roo/htmleditor/BlockFigure.js
authorAlan <alan@roojs.com>
Thu, 17 Mar 2022 03:31:45 +0000 (11:31 +0800)
committerAlan <alan@roojs.com>
Thu, 17 Mar 2022 03:31:45 +0000 (11:31 +0800)
Roo/htmleditor/BlockFigure.js

index 6c50282..530ff6e 100644 (file)
@@ -348,9 +348,9 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
                         fontSize : '16px',
                         lineHeight : '24px',
                         display : this.caption_display,
-                        maxWidth : this.width + ' !important',
+                        maxWidth : (this.align == 'center' ?  this.width : 100% ) + ' !important',
                         margin: m,
-                        width: this.width
+                        width: this.align == 'center' ?  this.width : 100%,
                     
                          
                     },