X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fhtmleditor%2FBlockFigure.js;h=530ff6e75de381dd58ac03468bc2bcbf76b8745c;hp=6c5028290d006000354d9450c1cbce17ca19dbfc;hb=bea67c903044a64d1e9fc90aa2ab9eaae2e9a836;hpb=89a253f10cc05e997e2c2a5d06a3e70380b5db3a 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%, },