I am trying to write a JavaScript for my custom element such that when a width/height style is applied to the custom element, the shadow DOM elements of the custom element will resize appropriately to fit within the border of the custom element.
I know that jQuery provides $(element).height()
to get and also set the height property. I am able to use this.$
and allow JQuery to select the shadow DOMs. But how do I select the custom element itself from inside the polymer-element script section?
Thanks