Files
react-native/Libraries
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
..
2019-02-28 09:46:05 -08:00
2018-12-11 20:01:00 -08:00
2019-03-06 14:57:30 -08:00
2019-03-06 14:57:30 -08:00
2019-03-06 14:57:30 -08:00
2019-01-17 02:41:59 -08:00
2019-03-06 14:57:30 -08:00
2018-10-31 01:37:26 -07:00
2019-03-11 11:38:22 -07:00
2019-03-06 14:57:30 -08:00
2019-03-06 14:57:30 -08:00
2019-03-06 14:57:30 -08:00