@ninebone/util 1.0.39 → 1.0.41

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/dist/nine-util.js CHANGED
@@ -1147,7 +1147,7 @@ prepare_fn = function(type, message, title, defaultClass) {
1147
1147
  // static 필드는 클래스 자체에 저장됨
1148
1148
  __publicField(NineUxUtil, "cssPath", "");
1149
1149
  Object.assign(nine$1, new NineUxUtil());
1150
- class UxSplitter extends HTMLElement {
1150
+ class NineSplitter extends HTMLElement {
1151
1151
  constructor() {
1152
1152
  super();
1153
1153
  __privateAdd(this, _mode);
@@ -1313,7 +1313,7 @@ class UxSplitter extends HTMLElement {
1313
1313
  const htmlTmpl = document.createElement("template");
1314
1314
  htmlTmpl.innerHTML = `
1315
1315
  <style>
1316
- @import "https://cdn.jsdelivr.net/npm/@ninebone/util@${"1.0.39"}/dist/css/nine-util.css";
1316
+ @import "https://cdn.jsdelivr.net/npm/@ninebone/util@${"1.0.41"}/dist/css/nine-util.css";
1317
1317
  ${customImport}
1318
1318
  </style>
1319
1319
  ${gripTmpl}
@@ -1337,10 +1337,14 @@ class UxSplitter extends HTMLElement {
1337
1337
  }, 0);
1338
1338
  const totalParentSize = isHorizontal ? parentRect.width : parentRect.height;
1339
1339
  allPanels.forEach((panel) => {
1340
+ if (panel.style.flex && panel.style.flex.trim() !== "") {
1341
+ return;
1342
+ }
1340
1343
  const size = isHorizontal ? panel.getBoundingClientRect().width : panel.getBoundingClientRect().height;
1341
1344
  const newSize = totalParentSize * (size / totalContentSize);
1342
1345
  const flexGrow = newSize / totalParentSize;
1343
1346
  panel.style.flex = `${flexGrow} ${flexGrow} 0`;
1347
+ trace$1.log(panel.style.flex);
1344
1348
  });
1345
1349
  });
1346
1350
  this.attachShadow({ mode: "open" });
@@ -1359,7 +1363,7 @@ _startDrag = new WeakMap();
1359
1363
  _init2 = new WeakMap();
1360
1364
  _prepareLayout = new WeakMap();
1361
1365
  if (!customElements.get("nine-splitter")) {
1362
- customElements.define("nine-splitter", UxSplitter);
1366
+ customElements.define("nine-splitter", NineSplitter);
1363
1367
  }
1364
1368
  function getDefaultExportFromCjs(x) {
1365
1369
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;