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

layoutStart events #207

Closed
Soviut opened this issue Sep 10, 2014 · 3 comments
Closed

layoutStart events #207

Soviut opened this issue Sep 10, 2014 · 3 comments

Comments

@Soviut
Copy link

Soviut commented Sep 10, 2014

It would be nice if there were layoutStart and fitStart events. Ideally, the event object they pass would provide size information the way layoutComplete does, without having to wait for the transition to finish. This would make it possible to resize the parent container to match the size of the child elements without having to wait.

It could potentially allow for the event cancelling as well.

@desandro
Copy link
Member

Hi! Thanks for the suggestion 😀

I'm having trouble understanding the benefit of these events. You mention "resize the parent container to match the size of the child elements without having to wait." Could you provide an example of what you're talking about here?

@Soviut
Copy link
Author

Soviut commented Sep 10, 2014

I believe it would be an easier way to resize the parent container to fit the width of the child elements to make centering easier. This would remove the need for the prototype hacking to achieve the same result.

@desandro
Copy link
Member

Thanks for the suggestion! I'll keep this in mind if I consider adding centering as a feature. See also #8

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

No branches or pull requests

2 participants