We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f405d7e commit e0cd671Copy full SHA for e0cd671
.changeset/puny-hoops-rush.md
@@ -0,0 +1,5 @@
1
+---
2
+"@plexinc/react-lightning-plugin-flexbox": patch
3
4
+
5
+Fix maxWidth when parent is unmeasurable
packages/plugin-flexbox/src/index.ts
@@ -250,6 +250,8 @@ export function plugin(yogaOptions?: YogaOptions): Plugin<LightningElement> {
250
computedWidth = isPercentage
251
? parentWidth * (maxWidth.value / 100)
252
: parentWidth;
253
+ } else if (maxWidth.unit === Yoga.instance.UNIT_POINT) {
254
+ computedWidth = maxWidth.value;
255
}
256
257
0 commit comments