The problem is: ResizeObserver loop limit exceeded
appearing at the browser as a notification dialog.
The steps are:
UI.getCurrent().getPage().addJavaScript("https://unpkg.com/vis-network/standalone/umd/vis-network.js");
but I've also used @JsModule
and @JavaScript
before.View
.The project setup is:
I'm gonna answer my own question. I wished to put here to help others and my future self.
After endless hours, the solution here was to set a style for the container informing the size of the container, for example:
div.getStyle().set("width", "600px").set("height", "400px");
or via css
#mynetwork {
width: 600px;
height: 400px;
}
where that div is the one you passed to:
...
var container = document.getElementById("mynetwork");
var network = new vis.Network(container, data, options);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.