Merge branch 'master' into wip_leon_T7975_caption_check_on_pasted_images
[roojs1] / Roo / htmleditor / BlockFigure.js
index 9c20794..e766bf5 100644 (file)
@@ -279,8 +279,11 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
                 maxWidth : iw + ' !important', // this is not getting rendered?
                 margin : m  
                 
-            }
+            },
+            width: this.align == 'center' ?  this.width : '100%' 
+
         };
+        
         /*
         '<div class="{0}" width="420" height="315" src="{1}" frameborder="0" allowfullscreen>' +
                     '<a href="{2}">' +