Sizerepoter on Safari

I use the “sizeChanged” method in a listener and with Chrome, my code is executed, but not with Safari, why?

Have you got any solution ?

My code :

public abstract class AbstractFicheField extends CssLayout {
  protected SizeReporter sizeReporter = new SizeReporter(this);
  
  public AbstractFicheField() {
     ...
     this.addResizeListener();
  }

  private void addResizeListener() {
    this.sizeReporter.addResizeListener(new ComponentResizeListener() {
      @Override
      public void sizeChanged(ComponentResizeEvent event) {
          ...
      }
    }
  }
}

Thanks.

Matthieu.