ninegrid2 6.1229.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.
@@ -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,16 @@ 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
+
117226
117233
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
117227
117234
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
117228
117235
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -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,16 @@ 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
+
117222
117229
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
117223
117230
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
117224
117231
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
@@ -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,16 @@ 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
+
113
120
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
114
121
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
115
122
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;
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.1230.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,16 @@ 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
+
113
120
  const displayRowCount = parseInt(this.#owner.getAttribute("display-row-count"));
114
121
  //console.log("=======displayRowCount: ", displayRowCount, this.#owner.data.count());
115
122
  if (this.#owner.closest("dialog") && ninegrid.j.querySelectorAll(this.#owner).hasClass("simple")) return 1;