How to attach according collapse event, in order to resize open-map?

http://webix.com/snippet/765c6c69

I modify open-map widget, adding “this.map.invalidateSize()” to fix the issue: “when continer of leaflet map resize, tile not display normally”. You can resize left-right layout to see it.

But when I put open-map widget into accorditem, open/collapse does not trigger onViewResize, please help to get it,

http://webix.com/snippet/54057d66

In this demo, mapbox(build on leaflet) display normal in layout view when resize, but not works in accordion.

You can redefine $setSize method.
This one is always called when size of view changed - it is the best place to put the custom resizing logic.

http://webix.com/snippet/1c063c23

That’s perfect, thank you!