ninegrid2 6.1229.0 → 6.1231.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.
@@ -117143,8 +117143,6 @@ class ngView
117143
117143
  thead : $(".ng-container-body thead", this.#owner.body).height() || 0,
117144
117144
  tfoot : $(".ng-container-body tfoot", this.#owner.body).height() || 0,
117145
117145
  };
117146
-
117147
- console.log(this.#owner.body, this.#height);
117148
117146
 
117149
117147
  if (this.#ing) return;
117150
117148
 
@@ -117222,7 +117220,18 @@ class ngView
117222
117220
  }
117223
117221
 
117224
117222
  #getRowCount = () => {
117225
-
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
+ console.log(this.#height);
117233
+
117234
+
117226
117235
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
117227
117236
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
117228
117237
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -117242,7 +117251,7 @@ class ngView
117242
117251
  }
117243
117252
 
117244
117253
  const totalHeight = this.#height.body - this.#height.thead - this.#height.tfoot - this.#getPinHeight();
117245
- console.log("=======totalHeight: ", this.#height, this.#getPinHeight());
117254
+ //console.log("=======totalHeight: ", this.#height, this.#getPinHeight());
117246
117255
 
117247
117256
  var rowCount = 0;
117248
117257
  var h = 0;
@@ -117250,7 +117259,7 @@ class ngView
117250
117259
  h += this.getRowHeight(this.#rawIndex + rowCount++);
117251
117260
  }
117252
117261
 
117253
- console.log("=======: ", this.#rawIndex, rowCount, this.#owner.data.count());
117262
+ //console.log("=======: ", this.#rawIndex, rowCount, this.#owner.data.count());
117254
117263
  if (this.#rawIndex + rowCount > this.#owner.data.count()) {
117255
117264
 
117256
117265
  rowCount = 0;
@@ -117267,7 +117276,7 @@ class ngView
117267
117276
  this.#owner.dataManager.viewRecords.rawIndex = this.#rawIndex;
117268
117277
  }
117269
117278
 
117270
- console.log("=======rowCount: ", rowCount);
117279
+ //console.log("=======rowCount: ", rowCount);
117271
117280
 
117272
117281
  return rowCount;
117273
117282
  };
@@ -117139,8 +117139,6 @@ class ngView
117139
117139
  thead : $(".ng-container-body thead", this.#owner.body).height() || 0,
117140
117140
  tfoot : $(".ng-container-body tfoot", this.#owner.body).height() || 0,
117141
117141
  };
117142
-
117143
- console.log(this.#owner.body, this.#height);
117144
117142
 
117145
117143
  if (this.#ing) return;
117146
117144
 
@@ -117218,7 +117216,18 @@ class ngView
117218
117216
  }
117219
117217
 
117220
117218
  #getRowCount = () => {
117221
-
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
+ console.log(this.#height);
117229
+
117230
+
117222
117231
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
117223
117232
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
117224
117233
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -117238,7 +117247,7 @@ class ngView
117238
117247
  }
117239
117248
 
117240
117249
  const totalHeight = this.#height.body - this.#height.thead - this.#height.tfoot - this.#getPinHeight();
117241
- console.log("=======totalHeight: ", this.#height, this.#getPinHeight());
117250
+ //console.log("=======totalHeight: ", this.#height, this.#getPinHeight());
117242
117251
 
117243
117252
  var rowCount = 0;
117244
117253
  var h = 0;
@@ -117246,7 +117255,7 @@ class ngView
117246
117255
  h += this.getRowHeight(this.#rawIndex + rowCount++);
117247
117256
  }
117248
117257
 
117249
- console.log("=======: ", this.#rawIndex, rowCount, this.#owner.data.count());
117258
+ //console.log("=======: ", this.#rawIndex, rowCount, this.#owner.data.count());
117250
117259
  if (this.#rawIndex + rowCount > this.#owner.data.count()) {
117251
117260
 
117252
117261
  rowCount = 0;
@@ -117263,7 +117272,7 @@ class ngView
117263
117272
  this.#owner.dataManager.viewRecords.rawIndex = this.#rawIndex;
117264
117273
  }
117265
117274
 
117266
- console.log("=======rowCount: ", rowCount);
117275
+ //console.log("=======rowCount: ", rowCount);
117267
117276
 
117268
117277
  return rowCount;
117269
117278
  };
@@ -30,8 +30,6 @@ export class ngView
30
30
  thead : $(".ng-container-body thead", this.#owner.body).height() || 0,
31
31
  tfoot : $(".ng-container-body tfoot", this.#owner.body).height() || 0,
32
32
  }
33
-
34
- console.log(this.#owner.body, this.#height);
35
33
 
36
34
  if (this.#ing) return;
37
35
 
@@ -109,7 +107,18 @@ export class ngView
109
107
  }
110
108
 
111
109
  #getRowCount = () => {
112
-
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
+ console.log(this.#height);
120
+
121
+
113
122
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
114
123
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
115
124
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -129,7 +138,7 @@ export class ngView
129
138
  }
130
139
 
131
140
  const totalHeight = this.#height.body - this.#height.thead - this.#height.tfoot - this.#getPinHeight();
132
- console.log("=======totalHeight: ", this.#height, this.#getPinHeight());
141
+ //console.log("=======totalHeight: ", this.#height, this.#getPinHeight());
133
142
 
134
143
  var rowCount = 0;
135
144
  var h = 0;
@@ -137,7 +146,7 @@ export class ngView
137
146
  h += this.getRowHeight(this.#rawIndex + rowCount++);
138
147
  }
139
148
 
140
- console.log("=======: ", this.#rawIndex, rowCount, this.#owner.data.count());
149
+ //console.log("=======: ", this.#rawIndex, rowCount, this.#owner.data.count());
141
150
  if (this.#rawIndex + rowCount > this.#owner.data.count()) {
142
151
 
143
152
  rowCount = 0;
@@ -154,7 +163,7 @@ export class ngView
154
163
  this.#owner.dataManager.viewRecords.rawIndex = this.#rawIndex;
155
164
  }
156
165
 
157
- console.log("=======rowCount: ", rowCount);
166
+ //console.log("=======rowCount: ", rowCount);
158
167
 
159
168
  return rowCount;
160
169
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1229.0",
4
+ "version": "6.1231.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/etc/ngView.js CHANGED
@@ -30,8 +30,6 @@ export class ngView
30
30
  thead : $(".ng-container-body thead", this.#owner.body).height() || 0,
31
31
  tfoot : $(".ng-container-body tfoot", this.#owner.body).height() || 0,
32
32
  }
33
-
34
- console.log(this.#owner.body, this.#height);
35
33
 
36
34
  if (this.#ing) return;
37
35
 
@@ -109,7 +107,18 @@ export class ngView
109
107
  }
110
108
 
111
109
  #getRowCount = () => {
112
-
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
+ console.log(this.#height);
120
+
121
+
113
122
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
114
123
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
115
124
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -129,7 +138,7 @@ export class ngView
129
138
  }
130
139
 
131
140
  const totalHeight = this.#height.body - this.#height.thead - this.#height.tfoot - this.#getPinHeight();
132
- console.log("=======totalHeight: ", this.#height, this.#getPinHeight());
141
+ //console.log("=======totalHeight: ", this.#height, this.#getPinHeight());
133
142
 
134
143
  var rowCount = 0;
135
144
  var h = 0;
@@ -137,7 +146,7 @@ export class ngView
137
146
  h += this.getRowHeight(this.#rawIndex + rowCount++);
138
147
  }
139
148
 
140
- console.log("=======: ", this.#rawIndex, rowCount, this.#owner.data.count());
149
+ //console.log("=======: ", this.#rawIndex, rowCount, this.#owner.data.count());
141
150
  if (this.#rawIndex + rowCount > this.#owner.data.count()) {
142
151
 
143
152
  rowCount = 0;
@@ -154,7 +163,7 @@ export class ngView
154
163
  this.#owner.dataManager.viewRecords.rawIndex = this.#rawIndex;
155
164
  }
156
165
 
157
- console.log("=======rowCount: ", rowCount);
166
+ //console.log("=======rowCount: ", rowCount);
158
167
 
159
168
  return rowCount;
160
169
  };