Commit Graph
4957 Commits
Author SHA1 Message Date
rcancro 01be5acece added a callback for initWithViewBlock/initWithLayerBlock 2015-09-14 20:36:08 -07:00
appleguy 6ce077be5a Merge pull request #650 from nguyenhuy/appledoc
Fix appledoc warnings
2015-09-15 00:24:11 +02:00
Huy Nguyen 7dc9b7fc40 Fix appledoc warnings. 2015-09-15 00:58:48 +03:00
appleguy 83aac39ef2 Merge pull request #648 from rcancro/layoutOptionsComments
Addressed comments to LayoutOptions PR
2015-09-14 16:43:15 +02:00
rcancro 2e3d59a73e spelling 2015-09-11 16:13:18 -07:00
rcancro b14e189bfb Addressed comments to LayoutOptions PR 2015-09-11 16:07:18 -07:00
appleguy dc0d22dff4 Merge pull request #647 from rcancro/stackBaseLine
Removed ASBaselineLayoutSpec and made baseline alignment part of ASStackLayoutSpec
2015-09-10 18:16:37 -07:00
appleguy 41197ad4a3 Merge pull request #646 from rcancro/finalLayoutableFollowup
Fixes a couple of comments
2015-09-10 18:16:24 -07:00
rcancro 4bb8472182 Removed ASBaselineLayoutSpec and made baseline alignment part of ASStackView 2015-09-10 17:29:39 -07:00
rcancro b85316d8bc a couple comment updates 2015-09-10 13:19:13 -07:00
appleguy a56ac35105 Merge pull request #613 from eanagel/ASDisplayNode-init-perf
ASDisplayNode: Perform one-time initializations in +initialize when possible
2015-09-09 22:36:19 -07:00
Ethan Nagel 8ea40a0265 Merge branch 'master' into ASDisplayNode-init-perf
Conflicts:
	AsyncDisplayKit/ASDisplayNode.mm
	AsyncDisplayKit/Private/ASDisplayNodeInternal.h
2015-09-09 22:17:49 -07:00
appleguy c959adace0 Merge pull request #645 from rcancro/finalLayoutableFlag
First thoughts on fixing the finalLayoutable method.
2015-09-09 21:36:58 -07:00
appleguy 69365451d1 Merge pull request #643 from nguyenhuy/fixRelayoutDuringInitialConfig
Avoid doing relayout during initial configuration
2015-09-09 19:45:21 -07:00
rcancro 23497379e4 added comment to give guidance if a user is getting crashing in finalLayoutable 2015-09-09 11:51:36 -07:00
rcancro 2a030c9841 First thoughts on fixing the finalLayoutable method. 2015-09-09 09:13:02 -07:00
appleguy cb1081b759 Merge pull request #644 from rcancro/layoutOptions
Added ASLayoutOptions class to store all options for ASLayoutSpecs
2015-09-08 22:30:31 -07:00
Huy Nguyen a8cecbd0ad Avoid doing relayout during initial configuration of table and collection views. 2015-09-08 22:43:28 +03:00
Huy Nguyen 6383b69029 Update ASTableViewTests to detect the case when relayout is trigger during initial configuration. 2015-09-08 22:43:25 +03:00
rcancro fc9d589cf9 Merge branch 'layoutOptions' of github.com:rcancro/AsyncDisplayKit into layoutOptions 2015-09-08 09:53:22 -07:00
rcancro fe4a2d272f add locks to ASLayoutOptions 2015-09-08 09:50:47 -07:00
rcancro b3369ca388 making ASLayoutOptions threadsafe 2015-09-08 09:50:47 -07:00
rcancro fca43a651f Make layoutOptions readonly 2015-09-08 09:50:47 -07:00
rcancro 2a8b20b102 didn't mean to commit this 2015-09-08 09:50:47 -07:00
rcancro 5786bc1b5b Fixed infinite recursion in finalLayoutable, removed child properties from ASLayoutSpecs 2015-09-08 09:50:47 -07:00
rcancro 84cd80c41d bug in setting the ASLayoutOptions default class. 2015-09-08 09:50:47 -07:00
rcancro 36d00273fb wasn't copying layout options to final layoutable. 2015-09-08 09:50:47 -07:00
rcancro 8263a9f53a Kittens sample working 2015-09-08 09:50:47 -07:00
rcancro cbaf178950 Hide ASLayoutOptions from the user 2015-09-08 09:50:47 -07:00
rcancro 15b3fd6eab Moved ASLayoutable* properties into ASLayoutOptions class 2015-09-08 09:50:27 -07:00
rcancro 61b72d2c46 fix kittens example 2015-09-08 09:49:40 -07:00
rcancro 7446578f6f Added method to ASLayoutable to allow a layoutable to override how it will be added to the layoutSpec.
Also moved ASStaticLayoutSpec to act more like the other layouts.
2015-09-08 09:49:40 -07:00
rcancro ad95a7c3ea add locks to ASLayoutOptions 2015-09-08 09:48:59 -07:00
Ethan Nagel a57f701a9e style fix 2015-09-08 09:44:54 -07:00
Ethan Nagel ed5ebbe450 update documentation. 2015-09-08 09:32:56 -07:00
appleguy 052f4c44f1 Merge pull request #641 from facebook/ASCollectionNode
Created ASCollectionNode with new example project.
2015-09-07 15:15:25 -07:00
appleguy 4634b2bbb3 Merge pull request #642 from facebook/LayerBasedWorkingRange
Switch to use only layers in the offscreen window used for the render range.
2015-09-07 14:44:59 -07:00
Scott Goodson a01d21f509 Switch to use only layers in the offscreen window used for the render range.
Accomodate and document unusual cases in which it is necessary to remove views when clearing backing stores.

ASDK layout and display calls don't depend on UIView in any way, so this
will achieve the necessary behavior of the render range while eliminating significant
UIView-specific overhead from heirarchy manipulation.
2015-09-07 14:20:57 -07:00
Scott Goodson 08e31e1c37 Created ASCollectionNode with new example project.
Eases support for nesting horizontally scrolling elements within a vertical scroller.

Further changes will improve the API, and optimize handling of the nested working ranges.
2015-09-07 12:54:42 -07:00
appleguy de795d577a Merge pull request #635 from garrettmoon/fixShouldRasterizeSubnodes
Fix should rasterize subnodes
2015-09-03 01:28:43 -07:00
Huy Nguyen 93e53bbd87 Use getter and setter of other properties in ASDisplayNode's frame setter. 2015-09-02 20:29:53 +03:00
Huy Nguyen 4b82cc4051 While adjusting position of a node, use getters and setters. Those methods already check thread affinity and layer readiness. 2015-09-02 20:29:50 +03:00
Garrett Moon 32582fca58 Fixes shouldRasterizeSubnodes
Currently, subnodes of nodes marked with shouldRasterizeSubnodes do not get layout calls. This adds the call to layout and changes the __layout method to reference self.bounds instead of _layer.bounds.

Also adds support for corner radius when rasterizing subnodes.
2015-09-01 13:25:27 -07:00
rcancro bca7d838e1 making ASLayoutOptions threadsafe 2015-08-31 14:19:27 -07:00
rcancro 588cb27ec8 Merge remote-tracking branch 'upstream/master' into layoutOptions 2015-08-31 09:28:35 -07:00
Paul Young 64892bc173 Try using a separate umbrella header for the dynamic framework. 2015-08-30 13:40:37 -07:00
appleguy bdc5562080 Merge pull request #631 from nguyenhuy/relayout_preserves_frame_origin
When relayout a node, preserve its frame origin
2015-08-28 23:49:23 -07:00
appleguy ecfacd0bd7 Merge pull request #621 from nguyenhuy/table_cell_node_min_width
New min constrained width for cell nodes in table view
2015-08-28 23:47:22 -07:00
appleguy 071dbd9dc2 Merge pull request #630 from garrettmoon/fixRangesOnNonFlowLayouts
scrollable directions was invalid for non-flow layouts as bounds and …
2015-08-28 23:43:49 -07:00
appleguy 4f2be6cf70 Merge pull request #634 from garrettmoon/fixStaticLayoutSpecs
array must be init'd otherwise arrayByAddingObject returns nil.
2015-08-28 23:43:12 -07:00