Add Sizing API that doesn't change view's frame.
Summary: This exposes an API so people can find out the resulting size of a layout calculation without changing the frame of the view. Reviewed By: emilsjolander Differential Revision: D4124630 fbshipit-source-id: f2b28d8a5474857cb1c92e021a1f161806826cda
This commit is contained in:
committed by
Facebook Github Bot
parent
630ae0972b
commit
b938017ccf
@@ -45,7 +45,10 @@
|
||||
// Get the resolved direction of this node. This won't be CSSDirectionInherit
|
||||
- (CSSDirection)css_resolvedDirection;
|
||||
|
||||
// Perform a layout calculation and update the frames of the views in the hierarchy with th results
|
||||
//! @abstract Perform a layout calculation and update the frames of the views in the hierarchy with th results
|
||||
- (void)css_applyLayout;
|
||||
|
||||
//! @abstract Compute the size of a layout with a constrained size.
|
||||
- (CGSize)css_sizeThatFits:(CGSize)constrainedSize;
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user