ninegrid2 6.1228.0 → 6.1230.0

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.
@@ -117220,7 +117220,16 @@ class ngView
117220
117220
  }
117221
117221
 
117222
117222
  #getRowCount = () => {
117223
-
117223
+
117224
+ if (this.#height.body == 0 && this.#height.thead == 0 && this.#height.tfoot == 0) {
117225
+ this.#height = {
117226
+ body : $(".ng-container-body", this.#owner.body).height() || 0,
117227
+ thead : $(".ng-container-body thead", this.#owner.body).height() || 0,
117228
+ tfoot : $(".ng-container-body tfoot", this.#owner.body).height() || 0,
117229
+ };
117230
+ }
117231
+
117232
+
117224
117233
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
117225
117234
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
117226
117235
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -117234,10 +117243,8 @@ class ngView
117234
117243
  if (this.#rawIndex + displayRowCount > this.#owner.data.count()) {
117235
117244
  this.#rawIndex = (displayRowCount >= this.#owner.data.count()) ? 0 : this.#owner.data.count() - displayRowCount;
117236
117245
  this.#owner.dataManager.viewRecords.rawIndex = this.#rawIndex;
117237
-
117238
117246
  }
117239
117247
 
117240
-
117241
117248
  return displayRowCount;
117242
117249
  }
117243
117250
 
@@ -117216,7 +117216,16 @@ class ngView
117216
117216
  }
117217
117217
 
117218
117218
  #getRowCount = () => {
117219
-
117219
+
117220
+ if (this.#height.body == 0 && this.#height.thead == 0 && this.#height.tfoot == 0) {
117221
+ this.#height = {
117222
+ body : $(".ng-container-body", this.#owner.body).height() || 0,
117223
+ thead : $(".ng-container-body thead", this.#owner.body).height() || 0,
117224
+ tfoot : $(".ng-container-body tfoot", this.#owner.body).height() || 0,
117225
+ };
117226
+ }
117227
+
117228
+
117220
117229
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
117221
117230
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
117222
117231
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -117230,10 +117239,8 @@ class ngView
117230
117239
  if (this.#rawIndex + displayRowCount > this.#owner.data.count()) {
117231
117240
  this.#rawIndex = (displayRowCount >= this.#owner.data.count()) ? 0 : this.#owner.data.count() - displayRowCount;
117232
117241
  this.#owner.dataManager.viewRecords.rawIndex = this.#rawIndex;
117233
-
117234
117242
  }
117235
117243
 
117236
-
117237
117244
  return displayRowCount;
117238
117245
  }
117239
117246
 
@@ -107,7 +107,16 @@ export class ngView
107
107
  }
108
108
 
109
109
  #getRowCount = () => {
110
-
110
+
111
+ if (this.#height.body == 0 && this.#height.thead == 0 && this.#height.tfoot == 0) {
112
+ this.#height = {
113
+ body : $(".ng-container-body", this.#owner.body).height() || 0,
114
+ thead : $(".ng-container-body thead", this.#owner.body).height() || 0,
115
+ tfoot : $(".ng-container-body tfoot", this.#owner.body).height() || 0,
116
+ }
117
+ }
118
+
119
+
111
120
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
112
121
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
113
122
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -121,10 +130,8 @@ export class ngView
121
130
  if (this.#rawIndex + displayRowCount > this.#owner.data.count()) {
122
131
  this.#rawIndex = (displayRowCount >= this.#owner.data.count()) ? 0 : this.#owner.data.count() - displayRowCount;
123
132
  this.#owner.dataManager.viewRecords.rawIndex = this.#rawIndex;
124
-
125
133
  }
126
134
 
127
-
128
135
  return displayRowCount;
129
136
  }
130
137
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1228.0",
4
+ "version": "6.1230.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/etc/ngView.js CHANGED
@@ -107,7 +107,16 @@ export class ngView
107
107
  }
108
108
 
109
109
  #getRowCount = () => {
110
-
110
+
111
+ if (this.#height.body == 0 && this.#height.thead == 0 && this.#height.tfoot == 0) {
112
+ this.#height = {
113
+ body : $(".ng-container-body", this.#owner.body).height() || 0,
114
+ thead : $(".ng-container-body thead", this.#owner.body).height() || 0,
115
+ tfoot : $(".ng-container-body tfoot", this.#owner.body).height() || 0,
116
+ }
117
+ }
118
+
119
+
111
120
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
112
121
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
113
122
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -121,10 +130,8 @@ export class ngView
121
130
  if (this.#rawIndex + displayRowCount > this.#owner.data.count()) {
122
131
  this.#rawIndex = (displayRowCount >= this.#owner.data.count()) ? 0 : this.#owner.data.count() - displayRowCount;
123
132
  this.#owner.dataManager.viewRecords.rawIndex = this.#rawIndex;
124
-
125
133
  }
126
134
 
127
-
128
135
  return displayRowCount;
129
136
  }
130
137