From 8c2661691345659bab1ab684a3ce0e04ab3c58dc Mon Sep 17 00:00:00 2001 From: leon Date: Mon, 27 Jun 2022 14:51:42 +0800 Subject: [PATCH] Roo/htmleditor/BlockTd.js roojs-core.js roojs-core-debug.js roojs-ui.js roojs-ui-debug.js roojs-all.js roojs-debug.js --- Roo/htmleditor/BlockTd.js | 2 +- roojs-all.js | 2 +- roojs-debug.js | 2 +- roojs-ui-debug.js | 2 +- roojs-ui.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Roo/htmleditor/BlockTd.js b/Roo/htmleditor/BlockTd.js index a9523deb17..51888cab62 100644 --- a/Roo/htmleditor/BlockTd.js +++ b/Roo/htmleditor/BlockTd.js @@ -627,7 +627,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { console.log("colWidths 0"); console.log(this.colWidths[0]); console.log("colWidths 1"); - console.log(this.colWdiths[1]); + console.log(this.colWidths[1]); if (this.colWidths[0] === false) { var nw = 100.0 / this.colWidths.length; diff --git a/roojs-all.js b/roojs-all.js index 5d88343ef0..b8dd7f7ce6 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -2053,7 +2053,7 @@ c0){t+=D;return; }B.push(i);},this);var nc=this.colWidths.length;if(B.length){var C=(nc-B.length)/(1.0*nc);var t=C*t;var ew=(100-t)/(1.0*B.length);this.colWidths.forEach(function(w,i){if(w>0){this.colWidths[i]=w*C;return;}this.colWidths[i]=ew;},this);}},shrinkColumn:function(){console.log("htmleditor.BlockTd shrinkColumn"); var A=this.toTableArray();console.log(A);this.normalizeWidths(A);var B=this.cellData.col;var nw=this.colWidths[B]*0.8;if(nw<5){return;}var C=(this.colWidths[B]*0.2)/(this.colWidths.length-1);this.colWidths.forEach(function(w,i){if(i==B){this.colWidths[i]=nw; diff --git a/roojs-debug.js b/roojs-debug.js index 38edd23149..49962824fc 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -49564,7 +49564,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { console.log("colWidths 0"); console.log(this.colWidths[0]); console.log("colWidths 1"); - console.log(this.colWdiths[1]); + console.log(this.colWidths[1]); if (this.colWidths[0] === false) { var nw = 100.0 / this.colWidths.length; diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 9b1962d5de..0f7d569a42 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -25072,7 +25072,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { console.log("colWidths 0"); console.log(this.colWidths[0]); console.log("colWidths 1"); - console.log(this.colWdiths[1]); + console.log(this.colWidths[1]); if (this.colWidths[0] === false) { var nw = 100.0 / this.colWidths.length; diff --git a/roojs-ui.js b/roojs-ui.js index cea452353a..5aa4ef251b 100644 --- a/roojs-ui.js +++ b/roojs-ui.js @@ -1107,7 +1107,7 @@ c0){t+=D;return; }B.push(i);},this);var nc=this.colWidths.length;if(B.length){var C=(nc-B.length)/(1.0*nc);var t=C*t;var ew=(100-t)/(1.0*B.length);this.colWidths.forEach(function(w,i){if(w>0){this.colWidths[i]=w*C;return;}this.colWidths[i]=ew;},this);}},shrinkColumn:function(){console.log("htmleditor.BlockTd shrinkColumn"); var A=this.toTableArray();console.log(A);this.normalizeWidths(A);var B=this.cellData.col;var nw=this.colWidths[B]*0.8;if(nw<5){return;}var C=(this.colWidths[B]*0.2)/(this.colWidths.length-1);this.colWidths.forEach(function(w,i){if(i==B){this.colWidths[i]=nw; -- 2.39.2