When elements created dynamically using data binding (including those in dom-repeat and dom-if templates), iron-grid component doesn't toggle responsive classes.
Asked
Active
Viewed 61 times
1 Answers
0
You must call onResize event after that elements created, like this:
var grid = this.$.grid;
grid.currentScreenformat = null;
grid.onResize();

Ali Seyfollahi
- 2,662
- 2
- 21
- 29
-
Since, iron-grid uses the iron-resizable-behavior, you should call grid.notifyResize() instead of calling grid.onResize() directly. – Abhishek May 25 '17 at 13:33
-
the Best answer. thanks so much. However as @abhiweb said `grid.notifyResize()` does work either. – Aug 19 '17 at 11:50