cavalion-vcl 1.1.40 → 1.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 2021/12/17 - 1.1.41
2
+
3
+ * Working around autoWidth bug (ListColumn)
4
+
1
5
  ### 2021/12/07 - 1.1.40
2
6
 
3
7
  * Updating
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cavalion-vcl",
3
- "version": "1.1.40",
3
+ "version": "1.1.41",
4
4
  "description": "Visual Component Library for vcl-comps",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -342,8 +342,13 @@ define(function(require) {
342
342
  return this._autoWidthValue;
343
343
  },
344
344
  setAutoWidthValue: function(value, force) {
345
- if(value === " ") value = " ";
346
345
  value = value.trim();
346
+ if(value === " ") value = " ";
347
+
348
+ if(value.length <= 10) {
349
+ value += "W";
350
+ }
351
+
347
352
  if(force === true || (this._autoWidthValue !== value && value.length > this._autoWidthValue.length)) {
348
353
  this._autoWidthValue = value;
349
354
  if(this._node !== null) {