react-native-macos/Libraries/Inspector
Georgios Andreadis 972ee2edbd Resolve relative size rendering error in inspector (#23804)
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
2019-03-13 02:07:02 -07:00
..
BorderBox.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BoxInspector.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
ElementBox.js Resolve relative size rendering error in inspector (#23804) 2019-03-13 02:07:02 -07:00
ElementProperties.js Make Flow types more strict 2018-10-01 14:32:27 -07:00
Inspector.js Update xplat/js to 0.92.0 2019-02-01 09:35:42 -08:00
InspectorOverlay.js Flow ViewPropTypes (#22504) 2018-12-04 19:32:36 -08:00
InspectorPanel.js Make Flow types more strict 2018-10-01 14:32:27 -07:00
NetworkOverlay.js Update network inspector to have smarter scroll stickiness (#21952) 2019-02-20 21:51:29 -08:00
PerformanceOverlay.js Revert D14186694: [RN] Use global or scoped performance loggers everywhere 2019-03-07 13:12:12 -08:00
StyleInspector.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
resolveBoxStyle.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00