polymer - How to access shadowRoot for css styling (Polymer1.0) -
in polymer0.5 like:
domready: function(){ print(this.shadowroot); }
which print out html in shadowroot.
when same thing in polymer1.0:
ready: function(){ print(this.shadowroot); }
the output null
.
more specifically, used access elements css attributes doing:
$(this.shadowroot).find('.some-class').css('height', amount + 'px');
but struggling find out how in polymer1.0, since shadowroot null.
thanks jdepypere hint. turns out of style attributes in style property of node property.
so adjust height:
polymer.dom(this.$.scrollarea).node.style.height = '100px';
Comments
Post a Comment