Re-flowing the page layout after core-ajax success

152 views
Skip to first unread message

Brett VanderVeen

unread,
Jun 30, 2014, 1:19:58 PM6/30/14
to polym...@googlegroups.com

I am using nested template elements to bind data returned from core-ajax element, but the screen isn't reflowing the content... is there a way to trigger the page to re-render after core-ajax success? Here is a screenshot of the issue I am seeing and a gist of the HTML for the page.

Any help would be much appreciated.

Rob Dodson

unread,
Jun 30, 2014, 1:44:59 PM6/30/14
to Brett VanderVeen, polymer-dev
It should reflow, I'm thinking there's something in the CSS that's causing an issue


On Mon, Jun 30, 2014 at 10:19 AM, Brett VanderVeen <veen...@gmail.com> wrote:

I am using nested template elements to bind data returned from core-ajax element, but the screen isn't reflowing the content... is there a way to trigger the page to re-render after core-ajax success? Here is a screenshot of the issue I am seeing and a gist of the HTML for the page.

Any help would be much appreciated.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/93f0a447-87f6-497a-8449-046358637f7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ian MacLeod

unread,
Jun 30, 2014, 1:57:18 PM6/30/14
to robd...@google.com, veen...@gmail.com, polym...@googlegroups.com
It looks like core-item sets a height of 40px, you should be able to override that via a:

.content /deep/ core-item {
  height: auto;
}

Also, you might find <template is="auto-binding"> super helpful for binding things outside of an element! Example:  https://gist.github.com/nevir/e3b2c239f4d079757593

Brett VanderVeen

unread,
Jun 30, 2014, 1:59:38 PM6/30/14
to polym...@googlegroups.com, robd...@google.com, veen...@gmail.com
Thank you Ian! That did it.
Reply all
Reply to author
Forward
0 new messages