Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Align ASEditableTextNode to pixel boundaries #673

Merged
merged 2 commits into from
Sep 21, 2015

Conversation

Adlai-Holler
Copy link
Contributor

No description provided.

@@ -212,9 +200,9 @@ - (CGSize)calculateSizeThatFits:(CGSize)constrainedSize
CGSize renderSizePlusShadowPadding = UIEdgeInsetsInsetRect(CGRect{CGPointZero, rendererSize}, shadowPadding).size;
ASDisplayNodeAssert(renderSizePlusShadowPadding.width >= 0, @"Calculated width for text with shadow padding (%f) is too narrow", constrainedSizeForText.width);
ASDisplayNodeAssert(renderSizePlusShadowPadding.height >= 0, @"Calculated height for text with shadow padding (%f) is too short", constrainedSizeForText.height);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should actually port the -calculateSize method to be -calculateLayout(...); it's probably not appropriate for -layoutSpecThatFits:. I think we'll formally mark -calculateSize as deprecated soon.

appleguy added a commit that referenced this pull request Sep 21, 2015
Align ASEditableTextNode to pixel boundaries
@appleguy appleguy merged commit 233e9c6 into facebookarchive:master Sep 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants