Martin Kralik
26e373c903
fix view clipping to operate on ui hierachy
...
Summary:
There was a bug in the view clipping logic.
Clipping works on uiview hierarchy, but I've been using `reactSuperview` to get clipping rect for my parent.
This is incorrect in a case where these two hierarchies don't match and there are some views between a view and its `reactSuperview`.
So we should really use normal `superview`. A minor complication is that `superview` is `nil` if we are clipped.
We could remember what our last `superview` was, but that's extra data we have to manage. Instead I use one clever trick to avoid doing so.
(Let me know if it makes sense based on my inline documentation.)
Reviewed By: mmmulani
Differential Revision: D4182647
fbshipit-source-id: 779cbcec0bd08eb270c3727c9c5cb9c080c4a2a4
2016-11-15 17:13:48 -08:00
..
2016-06-27 17:13:27 -07:00
2016-06-27 17:13:27 -07:00
2015-04-26 02:17:13 -08:00
2016-06-27 17:13:27 -07:00
2015-06-25 09:17:01 -08:00
2015-09-04 07:00:21 -08:00
2015-12-23 10:07:28 -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-02-26 08:18:34 -08:00
2016-10-27 12:43:52 -07:00
2015-06-25 09:15:21 -08:00
2015-06-25 09:15:21 -08:00
2015-12-17 06:46:33 -08:00
2016-01-04 06:38:30 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2015-06-05 09:58:25 -08:00
2016-04-26 04:21:39 -07:00
2016-08-09 08:43:34 -07:00
2016-11-07 17:14:02 -08:00
2016-01-29 06:26:30 -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
2015-03-26 02:42:24 -08:00
2016-10-27 04:29:01 -07:00
2015-11-26 08:54:16 -08:00
2015-11-26 08:54:16 -08:00
2016-09-07 13:10:11 -07:00
2016-09-27 06:28:33 -07:00
2016-09-27 06:28:33 -07:00
2016-10-05 07:28:44 -07:00
2016-08-23 16:58:41 -07:00
2016-09-07 13:10:11 -07:00
2016-11-11 05:29:30 -08:00
2016-11-11 05:29:30 -08:00
2015-03-26 02:42:24 -08:00
2016-05-06 03:18:20 -07:00
2016-09-08 17:58:50 -07:00
2016-09-08 17:58:50 -07:00
2016-09-08 17:58:50 -07:00
2016-09-08 17:58:50 -07:00
2015-12-08 07:48:26 -08:00
2015-12-08 07:48:26 -08:00
2015-03-26 02:42:24 -08:00
2016-08-05 12:44:21 -07:00
2015-03-26 02:42:24 -08:00
2015-06-03 09:49:35 -08:00
2016-09-27 06:28:33 -07:00
2016-01-04 08:00:29 -08:00
2016-11-07 15:58:43 -08:00
2016-01-04 08:00:29 -08:00
2016-04-16 15:15:25 -07:00
2016-03-21 03:21:27 -07:00
2016-07-20 08:58:59 -07:00
2016-07-11 13:34:02 -07:00
2016-05-24 03:28:25 -07:00
2016-11-11 05:29:30 -08:00
2015-11-25 04:12:34 -08:00
2016-10-05 07:28:44 -07:00
2015-11-03 14:49:30 -08:00
2015-11-03 14:49:30 -08:00
2015-04-29 08:08:45 -08:00
2016-04-26 04:21:39 -07:00
2016-11-14 03:28:38 -08:00
2016-11-15 08:44:30 -08:00
2015-12-21 10:30:39 -08:00
2015-12-21 10:30:39 -08:00
2015-03-26 02:42:24 -08:00
2015-12-21 10:30:39 -08:00
2015-09-02 06:11:24 -08:00
2015-03-26 02:42:24 -08:00
2015-03-26 02:42:24 -08:00
2015-09-02 06:11:24 -08:00
2016-05-03 05:40:29 -07:00
2016-09-27 06:28:33 -07:00
2016-05-24 01:58:23 -07:00
2016-09-27 06:28:33 -07:00
2015-03-26 02:42:24 -08:00
2016-05-24 01:58:23 -07:00
2015-03-26 02:42:24 -08:00
2016-05-20 17:28:50 -07:00
2015-07-07 06:15:20 -08:00
2016-11-11 05:29:30 -08:00
2016-11-11 05:29:30 -08:00
2015-03-26 02:42:24 -08:00
2016-10-27 06:58:52 -07:00
2016-11-14 03:28:38 -08:00
2016-10-16 06:43:46 -07:00
2016-10-16 06:43:46 -07:00
2015-03-26 02:42:24 -08:00
2016-10-16 06:43:46 -07:00
2015-09-02 06:11:24 -08:00
2016-09-27 06:28:33 -07:00
2016-11-11 05:29:30 -08:00
2016-11-11 05:29:30 -08:00
2016-11-15 17:13:48 -08:00