Roo/htmleditor/BlockFigure.js
authorleon <leon@roojs.com>
Mon, 25 Sep 2023 02:31:42 +0000 (10:31 +0800)
committerleon <leon@roojs.com>
Mon, 25 Sep 2023 02:31:42 +0000 (10:31 +0800)
Roo/htmleditor/BlockFigure.js

index f173d81..4d13e6d 100644 (file)
@@ -166,14 +166,18 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
                 listeners : {
                     select : function (combo, r, index)
                     {
-                        Roo.log('TOOLBAR CAPTION ALIGN');
-                        Roo.log(toolbar);
+                        toolbar.captionAlign
                         toolbar.editorcore.selectNode(toolbar.tb.selectedNode);
                         var b = block();
                         b.width = r.get('val');
                         b.updateElement();
                         syncValue();
                         toolbar.editorcore.onEditorEvent();
+
+                        toolbar.captionAlign.show();
+                        if(b.width != '100%') {
+                            toolbar.captionAlign.hide();
+                        }
                     }
                 },
                 xns : rooui.form,