core-canvas

36 views
Skip to first unread message

Anders Holmgren

unread,
Aug 27, 2014, 8:52:54 PM8/27/14
to polym...@googlegroups.com
I'm in the process of porting a polymer app that was using the (dart) polymer-elements to the new core-elements. Mostly this has been reasonably straight forward and I'm really liking the new core and paper elements.

However, my canvas related component is biting me again. The issue is the old how to get a canvas element to gracefully resize to the full size of it's parent container.

Last time around I had a real fight to get it to work properly but finally got there (after an event was added to polymer-layout to signal layout was finished).

Now this is hitting me again and I can't find any corresponding event in core-elements. I've asked this on SO http://stackoverflow.com/questions/25467796/autosizing-canvas-to-take-full-size-of-its-container and am hoping there is some new magic in polymer that fixes this that I've missed.

At the moment I've had to resort to the old set timeout hack, which of course is unreliable and hurts ux.

This got me thinking that this must be a common enough and tricky enough issue to warrant a special polymer wrapper around canvas (aka core-canvas).

thoughts?

A
Reply all
Reply to author
Forward
0 new messages