@nick-skriabin/glyph 0.1.13 → 0.1.15
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/index.cjs +6 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2591,14 +2591,12 @@ function ScrollView({
|
|
|
2591
2591
|
...styleRest,
|
|
2592
2592
|
...isSelfFocused ? focusedStyle : {},
|
|
2593
2593
|
clip: true,
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
flexShrink: styleRest.flexShrink ?? 1,
|
|
2601
|
-
minHeight: styleRest.minHeight ?? 0
|
|
2594
|
+
// Only set intrinsic height if user didn't set explicit height
|
|
2595
|
+
...styleRest.height === void 0 && intrinsicHeight !== void 0 ? {
|
|
2596
|
+
height: intrinsicHeight,
|
|
2597
|
+
flexShrink: styleRest.flexShrink ?? 1,
|
|
2598
|
+
minHeight: styleRest.minHeight ?? 0
|
|
2599
|
+
} : {}
|
|
2602
2600
|
};
|
|
2603
2601
|
const innerStyle = {
|
|
2604
2602
|
position: "absolute",
|
|
@@ -2646,9 +2644,6 @@ function ScrollView({
|
|
|
2646
2644
|
},
|
|
2647
2645
|
...focusable ? { focusable: true, focusId } : {}
|
|
2648
2646
|
},
|
|
2649
|
-
// Sizer: establishes the viewport's intrinsic height based on content.
|
|
2650
|
-
// Can grow (flexGrow) and shrink (flexShrink) to fit in constrained layouts.
|
|
2651
|
-
React15__default.default.createElement("box", { style: sizerStyle }),
|
|
2652
2647
|
// Content (absolutely positioned, scrolls via top offset)
|
|
2653
2648
|
React15__default.default.createElement(
|
|
2654
2649
|
"box",
|