Commit Graph

  • 052f4c44f1 Merge pull request #641 from facebook/ASCollectionNode appleguy 2015-09-07 15:15:25 -07:00
  • 4634b2bbb3 Merge pull request #642 from facebook/LayerBasedWorkingRange appleguy 2015-09-07 14:44:59 -07:00
  • a01d21f509 Switch to use only layers in the offscreen window used for the render range. Scott Goodson 2015-09-07 14:20:57 -07:00
  • 08e31e1c37 Created ASCollectionNode with new example project. Scott Goodson 2015-09-07 12:54:42 -07:00
  • de795d577a Merge pull request #635 from garrettmoon/fixShouldRasterizeSubnodes appleguy 2015-09-03 01:28:43 -07:00
  • 93e53bbd87 Use getter and setter of other properties in ASDisplayNode's frame setter. Huy Nguyen 2015-09-02 15:21:19 +03:00
  • 4b82cc4051 While adjusting position of a node, use getters and setters. Those methods already check thread affinity and layer readiness. Huy Nguyen 2015-09-02 15:01:22 +03:00
  • 32582fca58 Fixes shouldRasterizeSubnodes Garrett Moon 2015-09-01 13:19:26 -07:00
  • bca7d838e1 making ASLayoutOptions threadsafe rcancro 2015-08-31 14:19:27 -07:00
  • 588cb27ec8 Merge remote-tracking branch 'upstream/master' into layoutOptions rcancro 2015-08-31 09:28:35 -07:00
  • 64892bc173 Try using a separate umbrella header for the dynamic framework. Paul Young 2015-08-30 13:40:37 -07:00
  • bdc5562080 Merge pull request #631 from nguyenhuy/relayout_preserves_frame_origin appleguy 2015-08-28 23:49:23 -07:00
  • ecfacd0bd7 Merge pull request #621 from nguyenhuy/table_cell_node_min_width appleguy 2015-08-28 23:47:22 -07:00
  • 071dbd9dc2 Merge pull request #630 from garrettmoon/fixRangesOnNonFlowLayouts appleguy 2015-08-28 23:43:49 -07:00
  • 4f2be6cf70 Merge pull request #634 from garrettmoon/fixStaticLayoutSpecs appleguy 2015-08-28 23:43:12 -07:00
  • b07078fed6 Make layoutOptions readonly rcancro 2015-08-28 20:41:40 -07:00
  • b84cca0d4e didn't mean to commit this rcancro 2015-08-28 20:14:09 -07:00
  • f6d6768985 Fixed infinite recursion in finalLayoutable, removed child properties from ASLayoutSpecs rcancro 2015-08-28 20:11:19 -07:00
  • c1fef24c8a bug in setting the ASLayoutOptions default class. rcancro 2015-08-28 16:51:15 -07:00
  • 2155054c69 wasn't copying layout options to final layoutable. rcancro 2015-08-28 16:49:40 -07:00
  • e6a07ffe58 Kittens sample working rcancro 2015-08-28 15:55:41 -07:00
  • 9a702a49ad Hide ASLayoutOptions from the user rcancro 2015-08-28 14:30:50 -07:00
  • 62303ebeec array must be init'd otherwise arrayByAddingObject returns nil. Garrett Moon 2015-08-28 13:37:39 -07:00
  • afade854af Moved ASLayoutable* properties into ASLayoutOptions class rcancro 2015-08-28 09:36:22 -07:00
  • 107fe18a2a Add missing imports to address compiler warnings. Paul Young 2015-08-27 15:06:07 -07:00
  • 075c39e398 When relayout a node, preserve its frame origin. Huy Nguyen 2015-08-27 20:57:53 +03:00
  • 98b41a4b1c scrollable directions was invalid for non-flow layouts as bounds and contentSize were zero on init Garrett Moon 2015-08-26 16:15:18 -07:00
  • 32e2f7f1ad fix kittens example rcancro 2015-08-25 14:37:34 -07:00
  • 499adb5145 Added method to ASLayoutable to allow a layoutable to override how it will be added to the layoutSpec. rcancro 2015-08-25 14:04:06 -07:00
  • 9c51bde8e8 Merge pull request #611 from rcancro/baseline appleguy 2015-08-24 14:26:33 -07:00
  • 9bf62d14ab Merge remote-tracking branch 'upstream/master' into baseline rcancro 2015-08-24 09:54:36 -07:00
  • 38eae3ab77 Merge pull request #623 from rcancro/layoutSpec appleguy 2015-08-23 11:31:07 -07:00
  • 1d31a21ccb Merge branch 'baseline' of github.com:rcancro/AsyncDisplayKit into baseline rcancro 2015-08-22 19:14:59 -07:00
  • e991242513 removed "Stack" from baseline related layout names rcancro 2015-08-22 19:01:46 -07:00
  • 49ac178166 huy's comments rcancro 2015-08-22 18:47:16 -07:00
  • 1424127813 fixed copyright rcancro 2015-08-21 10:08:15 -07:00
  • 5d286930f6 Renamed ASStackText... to ASBaselineStack... ricky cancro 2015-08-21 08:54:28 -07:00
  • 830d39af92 fixed bug for baseline last rcancro 2015-08-20 20:43:18 -07:00
  • 2d6ddfe32e moved baseline alignment to a layout spec. ricky cancro 2015-08-20 10:38:54 -07:00
  • 9036ab8e7d new stack layout spec for text rcancro 2015-08-19 22:03:02 -07:00
  • ef89f758bc flailing ricky cancro 2015-08-19 16:59:23 -07:00
  • 3fd241e87e fixed vertical spacing bug and typo ricky cancro 2015-08-15 09:45:14 -07:00
  • cf428831a4 Added baseline spacing for vertical stack views. ricky cancro 2015-08-15 08:17:43 -07:00
  • f289b3345a Add baseline support to ASStackLayoutSpec ricky cancro 2015-08-12 16:55:12 -07:00
  • 0ea276e3ab huy's comments rcancro 2015-08-22 18:47:16 -07:00
  • e005a83a2b Revert "Switch to use only layers for offscreen working range window." Scott Goodson 2015-08-17 17:19:51 -07:00
  • f7e94f42ed Node init performance: Use share instances of UIColor and NSAttributedString for defaults. Ethan Nagel 2015-08-17 12:23:25 -07:00
  • 15975a67e8 use attributedString.length instead of attributedString.string.length to check for empty strings Sal 2015-08-16 18:24:20 -04:00
  • 8028364be4 Add test coverage for ASTextNodeRenderer to validate nil and empty strings produce CGSizeZero Sal 2015-08-13 13:57:54 -04:00
  • df730d6771 Return CGSizeZero if ASTextNode's text length or attributed string is nil Sal 2015-08-13 13:53:08 -04:00
  • f7f20ca8b7 preferredFrameSize should be used even if neither -layoutSpecThatFits: nor -calculateSizeThatFits: is overridden by subclassses. Huy Nguyen 2015-08-13 07:18:32 +03:00
  • 2ea7c541a6 When a new preferredFrameSize is set, previously calculated layout should be invalidated so that the size will be picked up in the next layout pass. Huy Nguyen 2015-08-13 07:17:24 +03:00
  • b93faab7f5 Improve relayout when constrained size of all nodes is changed: - In -layoutSubviews of table and collection views, detect changes that cause a different constrained size for nodes, and trigger relayout immediately. - Orientation change can be handled by this solution. So, no need to observe to its events. - Update Kittens example to support iPad (easier to catch bugs on these devices) and add a title to navigation bar (looks a bit nicer). Huy Nguyen 2015-08-09 23:18:25 +03:00
  • 680305704a addressed comments and fixed tests rcancro 2015-08-21 21:03:40 -07:00
  • 80bbf79046 Merge pull request #620 from nguyenhuy/617_relayout_loading_nodes appleguy 2015-08-21 21:03:30 -07:00
  • 80d8015240 Merge pull request #618 from garrettmoon/fixStaticLayoutWithCollectionView appleguy 2015-08-21 21:02:38 -07:00
  • c06a6be188 ASLayoutSpec are temporarily mutable and have a more obj-c interface rcancro 2015-08-21 16:02:36 -07:00
  • 608f62d487 fixed copyright rcancro 2015-08-21 10:08:15 -07:00
  • 023ad89815 Renamed ASStackText... to ASBaselineStack... ricky cancro 2015-08-21 08:54:28 -07:00
  • 641929c4e5 By default, cell nodes in table view should fill its width. So the min constrained width is updated to enforce this behaviour. Huy Nguyen 2015-08-21 17:22:55 +03:00
  • 0a398301b0 fixed bug for baseline last rcancro 2015-08-20 20:43:18 -07:00
  • ff8a7015a5 Merge branch 'baseline' of github.com:rcancro/AsyncDisplayKit into baseline rcancro 2015-08-20 20:24:17 -07:00
  • 97f323a8d9 Fix relayoutAllRows to trigger measurement (with the new constrained size) on all nodes, including loading ones. Huy Nguyen 2015-08-20 23:10:07 +03:00
  • 3e5d5c44cb Test relayout caused by a different constrained size for each and every node. All nodes, including loading ones, must be re-measured. Huy Nguyen 2015-08-20 22:06:46 +03:00
  • 36bac93a53 ensure class is not nil Ethan Nagel 2015-08-20 10:55:15 -07:00
  • 6624b84c4c Static layout doesn't properly set a height for collection view cells Garrett Moon 2015-08-20 10:40:00 -07:00
  • f404231b35 moved baseline alignment to a layout spec. ricky cancro 2015-08-20 10:38:54 -07:00
  • e7ffe67e3c new stack layout spec for text rcancro 2015-08-19 22:03:02 -07:00
  • 774d91653b flailing ricky cancro 2015-08-19 16:59:23 -07:00
  • 60cf43766b Revert "Switch to use only layers for offscreen working range window." Scott Goodson 2015-08-17 17:19:51 -07:00
  • bd9c9030d9 Merge pull request #610 from SRandazzo/606_sizezero_nil_text appleguy 2015-08-17 17:06:54 -07:00
  • 977c17b019 Merge pull request #614 from eanagel/reduce-UIColor-AttributedString-calls appleguy 2015-08-17 17:03:11 -07:00
  • f7fb6dc4e7 Node init performance: Use share instances of UIColor and NSAttributedString for defaults. Ethan Nagel 2015-08-17 12:23:25 -07:00
  • 5dabd20b54 Merge branch 'master' into ASDisplayNode-init-perf Ethan Nagel 2015-08-17 11:46:29 -07:00
  • 05cb1d734d use attributedString.length instead of attributedString.string.length to check for empty strings Sal 2015-08-16 18:24:20 -04:00
  • 3983bf2289 Merge pull request #603 from nguyenhuy/improved_external_relayout appleguy 2015-08-15 22:07:50 -07:00
  • 33912dfc49 Merge pull request #608 from nguyenhuy/preferredFrameSize_bugs appleguy 2015-08-15 22:00:54 -07:00
  • 11896904a2 fixed vertical spacing bug and typo ricky cancro 2015-08-15 09:45:14 -07:00
  • d7564e18e5 Added baseline spacing for vertical stack views. ricky cancro 2015-08-15 08:17:43 -07:00
  • 176e4962bf Perform one-time initializations in +initialize when possible Ethan Nagel 2015-08-14 14:41:13 -07:00
  • f06630c55a Add test coverage for ASTextNodeRenderer to validate nil and empty strings produce CGSizeZero Sal 2015-08-13 13:57:54 -04:00
  • 344c472349 Return CGSizeZero if ASTextNode's text length or attributed string is nil Sal 2015-08-13 13:53:08 -04:00
  • 1313c11519 preferredFrameSize should be used even if neither -layoutSpecThatFits: nor -calculateSizeThatFits: is overridden by subclassses. Huy Nguyen 2015-08-13 07:18:32 +03:00
  • c7043a193c When a new preferredFrameSize is set, previously calculated layout should be invalidated so that the size will be picked up in the next layout pass. Huy Nguyen 2015-08-13 07:17:24 +03:00
  • 7249661990 Improve relayout when constrained size of all nodes is changed: - In -layoutSubviews of table and collection views, detect changes that cause a different constrained size for nodes, and trigger relayout immediately. - Orientation change can be handled by this solution. So, no need to observe to its events. - Update Kittens example to support iPad (easier to catch bugs on these devices) and add a title to navigation bar (looks a bit nicer). Huy Nguyen 2015-08-09 23:18:25 +03:00
  • e93e97ad5f Merge pull request #607 from facebook/OptimizeWorkingRange appleguy 2015-08-12 19:02:00 -07:00
  • 3f982b5c9a Switch to use only layers for offscreen working range window. Scott Goodson 2015-08-12 18:03:47 -07:00
  • afffd9cfb2 Add baseline support to ASStackLayoutSpec ricky cancro 2015-08-12 16:55:12 -07:00
  • 7c78dfdd5f Merge pull request #599 from nguyenhuy/different_constrained_size_per_node appleguy 2015-08-12 15:54:55 -07:00
  • 57291fa544 Merge pull request #590 from rcancro/master appleguy 2015-08-12 15:51:57 -07:00
  • 3bc692c938 comments ricky cancro 2015-08-12 15:29:26 -07:00
  • b4e6591ad8 call super to return preferredFrameSize. ricky cancro 2015-08-12 13:43:10 -07:00
  • a3c2dbf8cd Table and collection views' async data source can provide different constrained size per node. And because the size is of type ASSizeRange, it has a min size that is very helpful in many cases.. Huy Nguyen 2015-08-05 16:16:01 +03:00
  • 356ea9dc7f Merge pull request #604 from garrettmoon/fixCrashForNonFlowLayout appleguy 2015-08-12 12:26:20 -07:00
  • 592e0301dd cache result of responds to selector Garrett Moon 2015-08-12 11:46:46 -07:00
  • 91bffc8ca2 Merge pull request #602 from shannonma/merge_fork appleguy 2015-08-12 11:40:21 -07:00
  • 4f4a26d2a3 ASDK now supports non-flow layouts. We shouldn't be assuming a flow layout. Garrett Moon 2015-08-12 11:33:40 -07:00
  • c26e9c7e94 Fix race in ASDisplayNodeRespectThreadAffinityOfNode Shannon Ma 2015-08-10 16:42:02 -07:00
  • 7cc996c190 Merge branch 'master' of github.com:rcancro/AsyncDisplayKit rcancro 2015-08-09 16:43:08 -07:00
  • b58e8344c0 Add expectedSize to ASNetworkImageNode ricky cancro 2015-07-30 16:50:11 -07:00