Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

158
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda