Valentin Shergin
ba170ec78c
Simplifying mess with RCTRootViewSizeFlexibility
...
Summary:
Now things look much more clear, I hope.
This diff:
* Introduces new property of `RCTRootShadowView` `availableSize` which represents exactly what we transmit to layout engine;
* Illuminates conflict between logical `availableSize` and explicitly specified size of DOM node (current `size`);
* Splits overcomplicated `setSize:forView:` method into two unrelated ones;
* Changes actual values of `RCTRootViewSizeFlexibility` enum constants for simpler usage;
* Completely removes `sizeFlexibility` concept from `RCTRootShadowView` (in favor of special values of `availableSize`);
* Makes the code clearer finally.
This is beginning of big effort to improve `RCTRootView` and co.
Reviewed By: mmmulani
Differential Revision: D4562834
fbshipit-source-id: f5baaf2859ea430d44645a6b5d35f222f15a668e
2017-02-19 23:19:47 -08:00
..
2016-06-27 17:13:27 -07:00
2016-06-27 17:13:27 -07:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2015-06-25 09:17:01 -08:00
2015-09-04 07:00:21 -08:00
2016-11-23 07:58:39 -08:00
2016-01-07 12:03:17 -08:00
2015-12-01 09:00:28 -08:00
2016-08-10 13:13:34 -07:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2015-06-25 09:15:21 -08:00
2016-11-23 07:58:39 -08:00
2016-01-04 06:38:30 -08:00
2017-01-26 18:28:53 -08:00
2017-01-28 12:43:30 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2016-11-23 07:58:39 -08:00
2016-04-26 04:21:39 -07:00
2016-11-23 07:58:39 -08:00
2016-11-07 17:14:02 -08:00
2016-11-23 07:58:39 -08:00
2016-07-07 12:44:14 -07:00
2016-07-12 05:59:12 -07:00
2015-11-26 08:54:16 -08:00
2016-11-23 07:58:39 -08:00
2017-01-09 19:28:27 -08:00
2015-11-26 08:54:16 -08:00
2015-11-26 08:54:16 -08:00
2016-11-23 07:58:39 -08:00
2017-02-06 11:01:11 -08:00
2016-09-27 06:28:33 -07:00
2016-10-05 07:28:44 -07:00
2016-11-23 07:58:39 -08:00
2017-02-01 13:13:27 -08:00
2016-11-23 07:58:39 -08:00
2016-11-18 14:43:31 -08:00
2016-11-23 07:58:39 -08:00
2016-05-06 03:18:20 -07:00
2016-11-23 07:58:39 -08:00
2016-09-08 17:58:50 -07:00
2016-11-23 07:58:39 -08:00
2016-09-08 17:58:50 -07:00
2016-11-23 07:58:39 -08:00
2016-12-03 18:58:29 -08:00
2016-11-23 07:58:39 -08:00
2016-08-05 12:44:21 -07:00
2015-03-26 02:42:24 -08:00
2016-11-23 07:58:39 -08:00
2016-09-27 06:28:33 -07:00
2016-11-23 07:58:39 -08:00
2017-02-17 15:16:01 -08:00
2016-11-23 07:58:39 -08:00
2016-04-16 15:15:25 -07:00
2017-02-19 23:19:47 -08:00
2017-02-19 23:19:47 -08:00
2017-01-27 10:13:29 -08:00
2017-02-02 09:58:30 -08:00
2017-02-02 09:58:30 -08:00
2017-02-02 09:58:30 -08:00
2017-02-02 09:58:30 -08:00
2016-11-23 07:58:39 -08:00
2017-02-03 15:28:34 -08:00
2016-11-23 07:58:39 -08:00
2017-01-27 10:13:29 -08:00
2016-11-23 07:58:39 -08:00
2015-11-03 14:49:30 -08:00
2016-11-23 07:58:39 -08:00
2016-04-26 04:21:39 -07:00
2017-02-06 21:00:16 -08:00
2017-02-16 06:59:33 -08:00
2016-11-23 07:58:39 -08:00
2017-02-19 18:33:49 -08:00
2016-11-23 07:58:39 -08:00
2015-12-21 10:30:39 -08:00
2016-11-23 07:58:39 -08:00
2015-03-26 02:42:24 -08:00
2016-11-23 07:58:39 -08:00
2015-09-02 06:11:24 -08:00
2016-05-03 05:40:29 -07:00
2016-12-19 06:28:40 -08:00
2017-02-15 02:17:17 -08:00
2017-01-27 14:58:27 -08:00
2016-11-23 07:58:39 -08:00
2016-12-19 06:28:40 -08:00
2016-11-23 07:58:39 -08:00
2016-11-29 12:28:55 -08:00
2015-07-07 06:15:20 -08:00
2016-12-19 06:28:40 -08:00
2017-01-26 09:43:32 -08:00
2017-02-02 09:58:30 -08:00
2017-02-03 15:28:34 -08:00
2015-03-26 02:42:24 -08:00
2016-11-23 07:58:39 -08:00
2017-02-07 14:02:20 -08:00
2017-01-06 20:29:02 -08:00
2017-01-06 20:29:02 -08:00
2016-11-23 07:58:39 -08:00
2017-01-06 20:29:02 -08:00
2016-11-23 07:58:39 -08:00
2016-09-27 06:28:33 -07:00
2016-11-18 14:43:31 -08:00
2017-02-02 09:58:30 -08:00
2017-02-03 15:28:34 -08:00