Skip to content

Commit a7948ba

Browse files
committed
Drop unused commit-skip-collapsible hunk in resizable patch
1 parent 4477437 commit a7948ba

2 files changed

Lines changed: 7 additions & 31 deletions

File tree

patches/@window-splitter__state@0.4.1.patch

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/dist/commonjs/index.js b/dist/commonjs/index.js
2-
index acb542b1b71a7e808173d938d16f45a484334f94..532ab3e4d9adf98ba4a451e423895a1b982c8ded 100644
2+
index acb542b1b71a7e808173d938d16f45a484334f94..09c80f9756c75eace8ca530dbd21502c3e22b3ab 100644
33
--- a/dist/commonjs/index.js
44
+++ b/dist/commonjs/index.js
55
@@ -107,6 +107,9 @@ function prepareSnapshot(snapshot) {
@@ -49,19 +49,7 @@ index acb542b1b71a7e808173d938d16f45a484334f94..532ab3e4d9adf98ba4a451e423895a1b
4949
panelBefore.currentValue = { type: "pixel", value: panelBeforeNewValue };
5050
panelAfter.currentValue = { type: "pixel", value: panelAfterNewValue };
5151
const leftoverSpace = new big_js_1.default(getGroupSize(context)).minus(newItems.reduce((acc, b) => acc.add(isPanelData(b) ? b.currentValue.value : b.size.value), new big_js_1.default(0)));
52-
@@ -693,7 +682,10 @@ function commitLayout(context) {
53-
});
54-
const staticWidth = getStaticWidth({ ...context, items: newItems });
55-
newItems.forEach((item, index) => {
56-
- if (item.type !== "panel" || item.collapsed || item.isStaticAtRest) {
57-
+ // Skip collapsible panels: they need to stay in pixel form so a fully
58-
+ // collapsed (0px) state doesn't get floored back up to `min` by the
59-
+ // CSS minmax() that buildTemplate emits for percent-typed panels.
60-
+ if (item.type !== "panel" || item.collapsed || item.isStaticAtRest || item.collapsible) {
61-
return;
62-
}
63-
newItems[index] = {
64-
@@ -821,7 +813,12 @@ function clearLastKnownSize(items) {
52+
@@ -821,7 +810,12 @@ function clearLastKnownSize(items) {
6553
function getDeltaForEvent(context, event) {
6654
const panel = getPanelWithId(context, event.panelId);
6755
if (event.type === "expandPanel") {
@@ -76,7 +64,7 @@ index acb542b1b71a7e808173d938d16f45a484334f94..532ab3e4d9adf98ba4a451e423895a1b
7664
const collapsedSize = getUnitPixelValue(context, panel.collapsedSize);
7765
return panel.currentValue.value.minus(collapsedSize);
7866
diff --git a/dist/esm/index.js b/dist/esm/index.js
79-
index 8891ac0141135a3a885bd704d9d443458c7a01bf..13426f6ef9290af0dcaf3ee1d416fb54f8e42745 100644
67+
index 8891ac0141135a3a885bd704d9d443458c7a01bf..8ad04a353fc0b2980e71ac2148c0cb71961857ff 100644
8068
--- a/dist/esm/index.js
8169
+++ b/dist/esm/index.js
8270
@@ -81,6 +81,9 @@ export function prepareSnapshot(snapshot) {
@@ -126,19 +114,7 @@ index 8891ac0141135a3a885bd704d9d443458c7a01bf..13426f6ef9290af0dcaf3ee1d416fb54
126114
panelBefore.currentValue = { type: "pixel", value: panelBeforeNewValue };
127115
panelAfter.currentValue = { type: "pixel", value: panelAfterNewValue };
128116
const leftoverSpace = new Big(getGroupSize(context)).minus(newItems.reduce((acc, b) => acc.add(isPanelData(b) ? b.currentValue.value : b.size.value), new Big(0)));
129-
@@ -667,7 +656,10 @@ function commitLayout(context) {
130-
});
131-
const staticWidth = getStaticWidth({ ...context, items: newItems });
132-
newItems.forEach((item, index) => {
133-
- if (item.type !== "panel" || item.collapsed || item.isStaticAtRest) {
134-
+ // Skip collapsible panels: they need to stay in pixel form so a fully
135-
+ // collapsed (0px) state doesn't get floored back up to `min` by the
136-
+ // CSS minmax() that buildTemplate emits for percent-typed panels.
137-
+ if (item.type !== "panel" || item.collapsed || item.isStaticAtRest || item.collapsible) {
138-
return;
139-
}
140-
newItems[index] = {
141-
@@ -795,7 +787,12 @@ function clearLastKnownSize(items) {
117+
@@ -795,7 +784,12 @@ function clearLastKnownSize(items) {
142118
function getDeltaForEvent(context, event) {
143119
const panel = getPanelWithId(context, event.panelId);
144120
if (event.type === "expandPanel") {

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)