@jsenv/navi 0.21.2 → 0.21.3
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/jsenv_navi.js +6 -4
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -6325,12 +6325,14 @@ const DIMENSION_PROPS = {
|
|
|
6325
6325
|
}
|
|
6326
6326
|
const inVerticalFlexFlow =
|
|
6327
6327
|
parentBoxFlow === "flex-y" || parentBoxFlow === "inline-flex-y";
|
|
6328
|
+
const inHorizontalFlexFlow =
|
|
6329
|
+
parentBoxFlow === "flex-x" || parentBoxFlow === "inline-flex-x";
|
|
6328
6330
|
const selfVerticalFlexFlow =
|
|
6329
6331
|
boxFlow === "flex-y" || boxFlow === "inline-flex-y";
|
|
6330
6332
|
if (selfVerticalFlexFlow || inVerticalFlexFlow) {
|
|
6331
6333
|
if (!inVerticalFlexFlow) {
|
|
6332
|
-
if (
|
|
6333
|
-
return {
|
|
6334
|
+
if (inHorizontalFlexFlow) {
|
|
6335
|
+
return { alignSelf: "stretch" };
|
|
6334
6336
|
}
|
|
6335
6337
|
return {
|
|
6336
6338
|
flexGrow: 1,
|
|
@@ -6341,8 +6343,8 @@ const DIMENSION_PROPS = {
|
|
|
6341
6343
|
}
|
|
6342
6344
|
return { flexGrow: 1, flexBasis: "0%" }; // Grow vertically in row
|
|
6343
6345
|
}
|
|
6344
|
-
if (
|
|
6345
|
-
return {
|
|
6346
|
+
if (inHorizontalFlexFlow) {
|
|
6347
|
+
return { alignSelf: "stretch" }; // Stretch to cross-axis height in flex-x
|
|
6346
6348
|
}
|
|
6347
6349
|
return { minHeight: "100%", height: "auto" }; // Take full height outside flex
|
|
6348
6350
|
},
|