-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASDisplayNode in ASCornerLayoutSpec in ASCellNode: preferredSize's width not working #2073
Comments
Pranoy1c
changed the title
Texture/AsyncDisplayKit ASDisplayNode preferredSize's width not working
ASDisplayNode in ASCornerLayoutSpec in ASCellNode: preferredSize's width not working
Jan 17, 2023
As an option, a combination of
Result: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am very new to
Texture/AsyncDisplayKit
. I am able to reproduce the issue with this simple code.I basically want to show a 10x10 square at the bottom right of the
ASCellNode
. I am doing this via aASDisplayNode
which is being set as the corner of aASCornerLayoutSpec
. I have set thestyle.preferredSize
of theASDisplayNode
toCGSize(width: 10, height: 10)
.For some reason, the width is not working and showing up as 50% of the screen width:
Code:
Any idea what am I doing wrong?
The text was updated successfully, but these errors were encountered: