Summary: This fixes an issue where `Layout.Top/Right/Left/Bottom` would not render its secondary child in the remaining size, if the primary child is empty (`null`). This is caused by React not rendering anything for null children, and as a result the CSS rules for the primary child would then match the second child. In the example below making the component tree invisible if there are no bundles in the NT/Bloks plugin. Fixed by rendering a zero sized element instead. Reviewed By: jknoxville Differential Revision: D27793382 fbshipit-source-id: 1e76b51986c30a6a0d98e9356fcad4dd8d5d5f91
7.5 KiB
7.5 KiB