cavalion-vcl 1.1.46 → 1.1.47

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,13 +1,19 @@
1
+ ### 2022/01/18 - 1.1.47
2
+
3
+ `#CVLN-20220118-1`
4
+
5
+ * Workaround for weird rendering bug in ui/List
6
+
1
7
  ### 2022/01/18 - 1.1.46
2
8
 
3
- **ui/List**:
9
+ * **ui/List**: Adding "ignore-busy" class behaviour
10
+ * **ui/List**: Refactoring `groupByColumn(...)` -> `groupBy(column, ...)`
11
+ * **ui/List**: Refactoring `render` => `render_` (vcl/Control.prototype.render was not being overridden/nameclashing)
4
12
 
5
- * Adding "ignore-busy" class behaviour
6
- * Refactoring `groupByColumn(...)` -> `groupBy(column, ...)`
7
13
 
8
14
  ### 2022/01/07 - 1.1.45
9
15
 
10
- * Fix for `context` parameter in data/Array:onFilterObject-event
16
+ * **data/Array**: Fix for `context` parameter in `onFilterObject`-event
11
17
 
12
18
  ### 2022/01/04
13
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cavalion-vcl",
3
- "version": "1.1.46",
3
+ "version": "1.1.47",
4
4
  "description": "Visual Component Library for vcl-comps",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/ui/List.js CHANGED
@@ -102,6 +102,15 @@ define(function(require) {
102
102
  _onColumnGetValue: null,
103
103
  _onColumnRenderCell: null,
104
104
 
105
+ /**-- #CVLN-20220118-1-workaround */
106
+ visibleChanged() {
107
+ if(this.isVisible()) {
108
+ // this.print("#CVLN-20220118-1 Calling rowHeightChanged-workaround");
109
+ this._body.rowHeightChanged();
110
+ }
111
+ return this.inherited(arguments);
112
+ },
113
+
105
114
  /**-- overrides ../Component.prototype */
106
115
  destroy: function() {
107
116
  /** @overrides ../Component.prototype.destroy */
@@ -212,7 +221,7 @@ define(function(require) {
212
221
  var topRow = parseInt(me._nodes.body.scrollTop / me._rowHeight, 10);
213
222
  me._topRow = topRow;
214
223
 
215
- me.render();
224
+ me.render_();
216
225
  }
217
226
 
218
227
  return this.inherited(arguments);
@@ -336,7 +345,7 @@ define(function(require) {
336
345
  },
337
346
 
338
347
  notifyEvent: function(event, data) {},
339
- render: function(bodyUpdateRows/*TODO*/) {
348
+ render_: function(bodyUpdateRows/*TODO*/) {
340
349
  if(bodyUpdateRows) return this._body.updateRows();
341
350
 
342
351
  var vrc = this.getVisibleRowCount(true);
@@ -388,7 +397,7 @@ define(function(require) {
388
397
  }
389
398
  }, 50);
390
399
  }
391
- this._body.render();
400
+ this._body.render_();
392
401
  },
393
402
  renderCell: function(cell, row, column) {
394
403
  var value, orgValue;
@@ -487,7 +496,7 @@ define(function(require) {
487
496
  }
488
497
  this.setSelection([]);
489
498
  //this.alignControls();
490
- this.render();
499
+ this.render_();
491
500
  }
492
501
  },
493
502
 
@@ -531,7 +540,7 @@ define(function(require) {
531
540
  setVisibleRowCount: function(value) {
532
541
  if(this._visibleRowCount !== value) {
533
542
  this._visibleRowCount = value;
534
- this.render();
543
+ this.render_();
535
544
  }
536
545
  },
537
546
 
@@ -711,7 +720,7 @@ define(function(require) {
711
720
  for(var i = 0; i < this._columns.length; ++i) {
712
721
  this._columns[i].setAutoWidthValue("", true);
713
722
  }
714
- this.render();
723
+ this.render_();
715
724
  },
716
725
  getAutoColumns: function() {
717
726
  return this._autoColumns;
@@ -53,7 +53,7 @@ define(function(require) {
53
53
  getList: function() {
54
54
  return this._parent !== null ? this._parent : null;
55
55
  },
56
- render: function() {
56
+ render_: function() {
57
57
  var list = this.getList();
58
58
  if(list.getCount() === 0) {
59
59
  this._firstRow = 0;