clientWidth/clientHeight

52 views
Skip to first unread message

Peter Rushforth

unread,
Jun 12, 2015, 4:24:45 PM6/12/15
to polym...@googlegroups.com
Hi there,

I've seen some advice   (here https://www.polymer-project.org/0.5/resources/faq.html#clientDimenstions) about using :host {display: block} to get the clientWidth correctly set up, but it's not working for me.  The weird thing is that when I put a break point in the code, clientWidth is set correctly at that point.  But when I remove the breakpoint, and console.log it, it is 0, causing failure down the line.  I've tried a few things, but can't get it to work.  Any advice appreciated.

I'm using 1.0.

Cheers,
Peter

Peter Rushforth

unread,
Jun 15, 2015, 3:20:16 PM6/15/15
to polym...@googlegroups.com
I later saw the request to post questions on Stackoverflow, so I posted there, with a plunker outlining the problem I'm having.


Cheers, and thanks,
Peter
Reply all
Reply to author
Forward
0 new messages