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

add component-laid-out lifecycle callback #434

Closed
Andersmholmgren opened this issue Mar 1, 2014 · 2 comments
Closed

add component-laid-out lifecycle callback #434

Andersmholmgren opened this issue Mar 1, 2014 · 2 comments
Assignees

Comments

@Andersmholmgren
Copy link

When working with layout managers like polymer-layout, polymer-grid-layout etc it is often important to know when the component has finished being layout out. For example, if the component contains a canvas element that needs to be resized based on the containing element this needs to happen when the containing element has it's size set on completion of the layout.

polymer-grid-layout has it's own event that it fires as polymer-layout may soon but this requires use of the signal mechanism at this stage. These, whilst useful, seem somewhat adhoc, given this is IMO a key lifecycle event for a component

@sjmiles sjmiles changed the title add component laid out lifecycle callback add component-layed-out lifecycle callback Aug 18, 2014
@sjmiles sjmiles changed the title add component-layed-out lifecycle callback add component-laid-out lifecycle callback Aug 18, 2014
@sjmiles
Copy link
Contributor

sjmiles commented Aug 18, 2014

As of now this is something to solve at a component or component-set level. There is no clear mandate today for what this would mean more generally.

This is not an inherently bad idea, but I think we need to let it rise again later.

@sjmiles sjmiles closed this as completed Aug 18, 2014
@Andersmholmgren
Copy link
Author

I'm updating my dart polymer app to the latest polymer, core-elements and paper-elements. I was previously using using polymer-elements and in that polymer-layout had a on-polymer-layout event that I was using to help size a canvas element to take the entire size of it's container (see http://stackoverflow.com/questions/21816467/autosizing-canvas-inside-a-polymer-grid-layout).

I can't find an equivalent int core-elements so I'm back to square one. How do I handle this now?

See also http://stackoverflow.com/questions/22111447/there-doesnt-seem-to-be-a-polymer-layout-event

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

No branches or pull requests

3 participants