972ee2edbd
Summary: Currently, when relative sizes are given in margin or padding stylings (be it a percentage or an auto measure), the inspector crashes, due to frame rendering not properly handling those kinds of measurements. This PR adds a resolution step for them: * Percentages are evaluated relative to the window size. * I decided to simply not render `auto` margins/paddings, due to the complexities involved (e.g. when the margin is between multiple elements with relative sizes). Since the inspector does not crash anymore on relative sizes on paddings or margins, I believe that this addresses #17496. Fixes #17496 [General] [Fixed] - Fix inspector rendering of relative margins and paddings Pull Request resolved: https://github.com/facebook/react-native/pull/23804 Differential Revision: D14437273 Pulled By: cpojer fbshipit-source-id: c9f0f71a2e1b2399a2b2148cef2124787703ead3 |
||
---|---|---|
.. | ||
BorderBox.js | ||
BoxInspector.js | ||
ElementBox.js | ||
ElementProperties.js | ||
Inspector.js | ||
InspectorOverlay.js | ||
InspectorPanel.js | ||
NetworkOverlay.js | ||
PerformanceOverlay.js | ||
StyleInspector.js | ||
resolveBoxStyle.js |