ricky
b5b9eefe44
[ASViewController] Layout root node AFTER propagating all the traits ( #2137 )
...
Wait until all subnodes have the new trait collection before laying out the root node. The way I’m using `asyncTraitCollectionDidChange`, I sometimes call methods that call `setNeedsLayout` which causes a new layout pass to begin before the new trait collection has been propagated to all nodes. This leads to weird behavoir, like nodes being laid out twice in the same call stack!
This change won’t stop possibly unnecessary layout passes because of `asyncTraitCollectionDidChange`, but it will at least do a complete layout pass once we have propagated all traits.
Ultimately the solution to this problem (as Adlai pointed out) is to wait until the CA transaction commit to perform the actual layout.
2016-08-25 11:52:43 -07:00
..
2016-08-24 15:56:21 -07:00
2016-08-25 10:03:07 -07:00
2016-08-23 16:01:43 -07:00
2016-08-18 15:01:41 -07:00
2016-06-11 23:31:39 -07:00
2016-08-10 10:30:25 -07:00
2016-06-11 23:31:39 -07:00
2016-08-15 12:06:06 -07:00
2016-08-04 19:00:46 -07:00
2016-08-16 15:40:55 -07:00
2016-07-05 17:47:00 -07:00
2016-07-22 13:09:28 -07:00
2016-08-11 11:23:07 -07:00
2016-06-11 23:31:39 -07:00
2016-08-12 15:37:23 -07:00
2016-08-23 14:33:45 -07:00
2016-06-11 23:31:39 -07:00
2016-06-11 23:31:39 -07:00
2016-08-10 10:30:25 -07:00
2016-06-11 23:31:39 -07:00
2016-07-16 15:29:24 -07:00
2016-06-11 23:31:39 -07:00
2016-06-11 23:31:39 -07:00
2016-06-11 23:31:39 -07:00
2016-08-15 12:06:06 -07:00
2016-08-19 17:51:41 -07:00
2016-08-15 12:06:06 -07:00
2016-07-02 11:45:40 -07:00
2016-06-11 23:31:39 -07:00
2016-07-14 15:10:49 -07:00
2016-08-04 19:00:46 -07:00
2016-08-09 15:31:37 -07:00
2016-06-11 23:31:39 -07:00
2016-08-23 16:01:43 -07:00
2016-08-23 16:01:43 -07:00
2016-07-09 17:20:59 -07:00
2016-06-11 23:31:39 -07:00
2016-08-09 15:31:37 -07:00
2016-08-22 10:44:29 -07:00
2016-08-22 10:44:29 -07:00
2016-06-11 23:31:39 -07:00
2016-07-16 15:32:13 -07:00
2016-06-11 23:31:39 -07:00
2016-07-07 11:13:18 -07:00
2016-07-16 10:46:55 -07:00
2016-07-16 15:32:13 -07:00
2016-06-11 23:31:39 -07:00
2016-06-11 23:31:39 -07:00
2016-08-19 11:47:56 -07:00
2016-08-19 11:47:56 -07:00
2016-08-18 15:01:41 -07:00
2016-07-16 15:29:24 -07:00
2016-06-11 23:31:39 -07:00
2016-06-11 23:31:39 -07:00
2016-06-11 23:31:39 -07:00
2016-07-07 11:13:18 -07:00
2016-07-14 11:27:32 -07:00
2016-08-11 11:23:07 -07:00
2016-07-02 11:45:40 -07:00
2016-08-17 19:58:40 -07:00
2016-07-07 15:12:19 +10:00
2016-06-11 23:31:39 -07:00
2016-08-04 19:00:46 -07:00
2016-08-16 10:20:59 -07:00
2016-08-12 12:07:00 -07:00
2016-08-13 17:28:19 -07:00
2016-08-13 17:28:19 -07:00
2016-07-29 11:09:38 -07:00
2016-07-29 11:09:38 -07:00
2016-08-15 11:26:10 -07:00
2016-08-25 11:52:43 -07:00
2016-06-11 23:31:39 -07:00
2016-08-18 15:01:41 -07:00
2016-08-18 15:01:41 -07:00
2016-07-07 15:12:19 +10:00
2016-08-11 11:23:07 -07:00
2016-08-11 11:23:07 -07:00
2016-07-04 16:34:16 -07:00
2016-08-18 15:01:41 -07:00