Calling the responsive vaadin client to refresh

Hello,

Im a using vaadin with a custom javascript component i wrote.
And Im using vaadin responsive design too with css. (global[width-range~=“301-600px”]
…)

I have some trouble when i change the dimension of an element on the page dynamicly with my own javascript component.
Because the vaadin responsive design doesn’t handle the new size of the element. He will only do it when the windows resized.

I tried in javascript to fire the windows event resizing :

window.dispatchEvent(new Event('resize'));

But it doesn’t work.

Is there a way to call the vaadin responsive client to refresh or recalculate the new dimension ?