Closed sudipta1411 closed 6 years ago
When do you check the clientWidth? Initially, the dialog will be display: none, hence everything inside it will have 0 dimensions. You need to open the dialog, and then you can measure the content's size. Since the opening is asynchronous, you can listen for the event iron-overlay-opened
to know that the dialog has been fully opened
Thanks. This worked.
I am trying to display a audio waveform in polymer using peaks.js from BBC. https://gist.github.com/anonymous/3a9dc1613a9f8e3de61712df8a1d6a84 code runs perfectly. Based on the gist, I have created a simple polymer webcomponent that should display the audio waveform.
When the code is run, the peaks.js throws an
On further investigation, I have found that the "this.$.options.container.clientwidth" is 0. Whereas in the original example code it is 1000. Can someone please point out where am I doing things the wrong way. I am new to this polymer and any help is greatly appreciated. Thank you.