Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
Vaadin + VisJs: ResizeObserver loop limit exceeded

The problem is: ResizeObserver loop limit exceeded appearing at the browser as a notification dialog.

The steps are:

  • Using vaadin and creating a component for vis-js. Importing the vis-network any way you want, doesn't affect. Right now, my code has UI.getCurrent().getPage().addJavaScript("https://unpkg.com/vis-network/standalone/umd/vis-network.js"); but I've also used @JsModule and @JavaScript before.
  • Adding that component to a View.
  • Running a Js to create a simple graph (copy-pasted from vis-js examples page). No matter at which point in the lifecycle this is called.

The project setup is:

  • vis-network.js 9.1.0
  • Chrome browser 96.0.4664.110
  • Spring Boot 2.6.2-SNAPSHOT
  • Vaadin spring boot starter 14.7.7
  • Node v14.17.3
  • Java 16.0.1
  • Gradle 7.1

I'm gonna answer my own question. I wished to put here to help others and my future self.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

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);
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!