ninegrid2 6.739.0 → 6.741.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.
@@ -121155,6 +121155,8 @@ class nxSplitter extends HTMLElement {
121155
121155
  });
121156
121156
 
121157
121157
  this.#prepareLayout();
121158
+
121159
+ window.addEventListener("resize", () => this.#prepareLayout());
121158
121160
  };
121159
121161
 
121160
121162
  #isLastSplitter = () => {
@@ -121186,13 +121188,15 @@ class nxSplitter extends HTMLElement {
121186
121188
 
121187
121189
  // ✔ 정확하게 마지막 splitter일 때만 next 조정
121188
121190
  if (this.#isLastSplitter()) {
121189
- next.style.width = "100%";
121191
+ next.style.width = `${eachSize}px`;
121192
+ //next.style.width = "100%";
121190
121193
  }
121191
121194
  } else {
121192
121195
  prev.style.height = `${eachSize}px`;
121193
121196
 
121194
121197
  if (this.#isLastSplitter()) {
121195
- next.style.height = "100%";
121198
+ next.style.height = `${eachSize}px`;
121199
+ //next.style.height = "100%";
121196
121200
  }
121197
121201
  }
121198
121202
  };
@@ -121151,6 +121151,8 @@ class nxSplitter extends HTMLElement {
121151
121151
  });
121152
121152
 
121153
121153
  this.#prepareLayout();
121154
+
121155
+ window.addEventListener("resize", () => this.#prepareLayout());
121154
121156
  };
121155
121157
 
121156
121158
  #isLastSplitter = () => {
@@ -121182,13 +121184,15 @@ class nxSplitter extends HTMLElement {
121182
121184
 
121183
121185
  // ✔ 정확하게 마지막 splitter일 때만 next 조정
121184
121186
  if (this.#isLastSplitter()) {
121185
- next.style.width = "100%";
121187
+ next.style.width = `${eachSize}px`;
121188
+ //next.style.width = "100%";
121186
121189
  }
121187
121190
  } else {
121188
121191
  prev.style.height = `${eachSize}px`;
121189
121192
 
121190
121193
  if (this.#isLastSplitter()) {
121191
- next.style.height = "100%";
121194
+ next.style.height = `${eachSize}px`;
121195
+ //next.style.height = "100%";
121192
121196
  }
121193
121197
  }
121194
121198
  };
@@ -167,6 +167,8 @@ class nxSplitter extends HTMLElement {
167
167
  });
168
168
 
169
169
  this.#prepareLayout();
170
+
171
+ window.addEventListener("resize", () => this.#prepareLayout());
170
172
  };
171
173
 
172
174
  #isLastSplitter = () => {
@@ -198,13 +200,15 @@ class nxSplitter extends HTMLElement {
198
200
 
199
201
  // ✔ 정확하게 마지막 splitter일 때만 next 조정
200
202
  if (this.#isLastSplitter()) {
201
- next.style.width = "100%";
203
+ next.style.width = `${eachSize}px`;
204
+ //next.style.width = "100%";
202
205
  }
203
206
  } else {
204
207
  prev.style.height = `${eachSize}px`;
205
208
 
206
209
  if (this.#isLastSplitter()) {
207
- next.style.height = "100%";
210
+ next.style.height = `${eachSize}px`;
211
+ //next.style.height = "100%";
208
212
  }
209
213
  }
210
214
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.739.0",
4
+ "version": "6.741.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -167,6 +167,8 @@ class nxSplitter extends HTMLElement {
167
167
  });
168
168
 
169
169
  this.#prepareLayout();
170
+
171
+ window.addEventListener("resize", () => this.#prepareLayout());
170
172
  };
171
173
 
172
174
  #isLastSplitter = () => {
@@ -198,13 +200,15 @@ class nxSplitter extends HTMLElement {
198
200
 
199
201
  // ✔ 정확하게 마지막 splitter일 때만 next 조정
200
202
  if (this.#isLastSplitter()) {
201
- next.style.width = "100%";
203
+ next.style.width = `${eachSize}px`;
204
+ //next.style.width = "100%";
202
205
  }
203
206
  } else {
204
207
  prev.style.height = `${eachSize}px`;
205
208
 
206
209
  if (this.#isLastSplitter()) {
207
- next.style.height = "100%";
210
+ next.style.height = `${eachSize}px`;
211
+ //next.style.height = "100%";
208
212
  }
209
213
  }
210
214
  };