From: Alan Date: Thu, 17 Mar 2022 03:31:45 +0000 (+0800) Subject: Roo/htmleditor/BlockFigure.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=bea67c903044a64d1e9fc90aa2ab9eaae2e9a836 Roo/htmleditor/BlockFigure.js --- diff --git a/Roo/htmleditor/BlockFigure.js b/Roo/htmleditor/BlockFigure.js index 6c5028290d..530ff6e75d 100644 --- a/Roo/htmleditor/BlockFigure.js +++ b/Roo/htmleditor/BlockFigure.js @@ -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%, },