From bea67c903044a64d1e9fc90aa2ab9eaae2e9a836 Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 17 Mar 2022 11:31:45 +0800 Subject: [PATCH] Roo/htmleditor/BlockFigure.js --- Roo/htmleditor/BlockFigure.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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%, }, -- 2.39.2