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 +10 -4
- package/package.json +1 -1
- package/src/ui/List.js +15 -6
- package/src/ui/ListBody.js +1 -1
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
|
|
16
|
+
* **data/Array**: Fix for `context` parameter in `onFilterObject`-event
|
|
11
17
|
|
|
12
18
|
### 2022/01/04
|
|
13
19
|
|
package/package.json
CHANGED
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
723
|
+
this.render_();
|
|
715
724
|
},
|
|
716
725
|
getAutoColumns: function() {
|
|
717
726
|
return this._autoColumns;
|
package/src/ui/ListBody.js
CHANGED