I have a polymer element which is grabbing data from a spreadsheet through "polymer-jsonp". Once the data has arrived, I update the content of my element and want to get its displayed size.
I expect the async to be called when images and content has been fully rendered. (http://www.polymer-project.org/docs/polymer/polymer.html#asyncmethod)
Calling refresh as below appears to return the size of my divs without the inner images. ... ...
researchChanged: function() {
if(this.research){
this.$.title.innerHTML = this.research.feed.entry[0].gsx$title.$t;
// call refresh
this.async(this.refresh);
}
}
Calling refresh with a delay appears to return the expected size.
this.async(function() {
this.refresh();
}, null, 10);
Is it the expected behavior? Can we minimize this async delay somehow?
Thanks