projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
10693a8
)
fix out of bounds column widths
author
Alan
<alan@roojs.com>
Thu, 18 Jan 2024 08:36:23 +0000
(16:36 +0800)
committer
Alan
<alan@roojs.com>
Thu, 18 Jan 2024 08:36:23 +0000
(16:36 +0800)
Roo/htmleditor/BlockTd.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/BlockTd.js
b/Roo/htmleditor/BlockTd.js
index
3f37011
..
6bda2c3
100644
(file)
--- a/
Roo/htmleditor/BlockTd.js
+++ b/
Roo/htmleditor/BlockTd.js
@@
-684,7
+684,11
@@
Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, {
this.colWidths[i] = nw;
return;
}
this.colWidths[i] = nw;
return;
}
- this.colWidths[i] += otherAdd
+ if (typeof(this.colWidths[i]) == 'undefined') {
+ this.colWidths[i] = otherAdd;
+ } else {
+ this.colWidths[i] += otherAdd;
+ }
}, this);
this.updateWidths(table);
}, this);
this.updateWidths(table);
@@
-704,7
+708,12
@@
Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, {
this.colWidths[i] = nw;
return;
}
this.colWidths[i] = nw;
return;
}
- this.colWidths[i] -= otherSub
+ if (typeof(this.colWidths[i]) == 'undefined') {
+ this.colWidths[i] = otherSub;
+ } else {
+ this.colWidths[i] -= otherSub;
+ }
+
}, this);
this.updateWidths(table);
}, this);
this.updateWidths(table);