@ninebone/util 1.0.40 → 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
@@ -1313,7 +1313,7 @@ class NineSplitter 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.40"}/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}
@@ -1326,7 +1326,6 @@ class NineSplitter extends HTMLElement {
1326
1326
  window.addEventListener("resize", () => __privateGet(this, _prepareLayout).call(this));
1327
1327
  });
1328
1328
  __privateAdd(this, _prepareLayout, () => {
1329
- trace$1.log("**********");
1330
1329
  const isHorizontal = __privateGet(this, _mode) === "h";
1331
1330
  const parent = this.parentElement;
1332
1331
  const allPanels = Array.from(parent.children).filter((el) => el.tagName.toLowerCase() !== "nine-splitter");
@@ -1338,6 +1337,9 @@ class NineSplitter extends HTMLElement {
1338
1337
  }, 0);
1339
1338
  const totalParentSize = isHorizontal ? parentRect.width : parentRect.height;
1340
1339
  allPanels.forEach((panel) => {
1340
+ if (panel.style.flex && panel.style.flex.trim() !== "") {
1341
+ return;
1342
+ }
1341
1343
  const size = isHorizontal ? panel.getBoundingClientRect().width : panel.getBoundingClientRect().height;
1342
1344
  const newSize = totalParentSize * (size / totalContentSize);
1343
1345
  const flexGrow = newSize / totalParentSize;