Skip to content
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

topAnchorDisplayObject, left, bottom, etc. are missing in AnchorLayoutData? #16

Closed
CrazyFlasher opened this issue Sep 13, 2019 · 4 comments

Comments

@CrazyFlasher
Copy link

No description provided.

@CrazyFlasher CrazyFlasher changed the title topAnchorDisplayObject, let, bottom, etc. are missing in AnchorLayoutData? topAnchorDisplayObject, left, bottom, etc. are missing in AnchorLayoutData? Sep 13, 2019
@joshtynjala
Copy link
Member

Correct. They have not been implemented yet. I'm thinking about using a Haxe enum instead, so that you can optionally pass multiple values to top, right, bottom, and left. Hypothetically, something like this:

//relative to display object
layoutData.top = RelativeTo(target, 10);

As I understand it, I can use special metadata to allow you to pass in a number that will be automatically coerced into the enum, so this should still work too:

//relative to container edge
layoutData.top = 10;

It should be pretty cool because it might allow other types of anchoring, such as with percentages instead of pixels.

@CrazyFlasher
Copy link
Author

Cool!

@CrazyFlasher
Copy link
Author

Any updates about anchorDisplayObjects? :)

@joshtynjala
Copy link
Member

Not yet. I'll try to give it some priority after GridView is further along.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants