roojs-debug.js
authorleon <leon@roojs.com>
Mon, 25 Sep 2023 02:33:56 +0000 (10:33 +0800)
committerleon <leon@roojs.com>
Mon, 25 Sep 2023 02:33:56 +0000 (10:33 +0800)
roojs-debug.js

index 0de2ca1..3ea20d1 100644 (file)
@@ -48445,14 +48445,18 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
                 listeners : {
                     select : function (combo, r, index)
                     {
-                        Roo.log('TOOLBAR CAPTION ALIGN');
-                        Roo.log(toolbar);
                         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.setFromData('left');
+                            toolbar.captionAlign.hide();
+                        }
                     }
                 },
                 xns : rooui.form,