# resize renderwindow problem only with firefox

**URL:** https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242
**Category:** Web
**Created:** [July 1, 2019, 3:50pm UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242 "2019-07-01T15:50:22Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![PBrockmann](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pbrockmann/32/524_2.png) [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)
#### Post date: [July 1, 2019, 3:50pm UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/1 "2019-07-01T15:50:22Z")

</div>

I would like to have some feedback on a specific problem that appears only with firefox (tested with 67.0.4 (64-bit)) but not with google-chrome (Version 75.0.3770.100 (Official Build) (64-bit)).

With firefox, the resizestop event is not triggered so impossible to release the grip control (resize grid).  
With google-chrome, it works nicelly and renderWindows are resizable.

Test from [https://jsfiddle.net/PBrockmann/vwn10ptd/](https://jsfiddle.net/PBrockmann/vwn10ptd/)

Am I missing something ? I thing it is related to the use of both vtk.js and firefox because I have an application with resizable divs that works correctly with firefox.

Let me know.

---

<div class="post-metadata">

### Author: ![PBrockmann](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pbrockmann/32/524_2.png) [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)
#### Post date: [July 5, 2019, 10:29am UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/2 "2019-07-05T10:29:22Z")

</div>

Any workaround on this issue ?

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [July 7, 2019, 1:55pm UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/3 "2019-07-07T13:55:59Z")

</div>

This might be related to jQuery and Firefox.

---

<div class="post-metadata">

### Author: ![PBrockmann](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pbrockmann/32/524_2.png) [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)
#### Post date: [July 7, 2019, 5:40pm UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/4 "2019-07-07T17:40:04Z")

</div>

Yes it is. But also related to vtk.js events I imagine.  
What is strange is that if you comment the BindEvent method

```
interactor.bindEvents($('#div_' + Id)[0]);

```

then is works nicely.

---

<div class="post-metadata">

### Author: ![PBrockmann](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pbrockmann/32/524_2.png) [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)
#### Post date: [September 26, 2019, 1:51pm UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/5 "2019-09-26T13:51:37Z")

</div>

I am back on some development and I have a code where this problem occurs.  
Is there a solution to solve it ?

I have prepared an example test from [https://jsfiddle.net/PBrockmann/vwn10ptd/](https://jsfiddle.net/PBrockmann/vwn10ptd/)  
It works with google-chrome, not firefox.

Let me know…

---

<div class="post-metadata">

### Author: ![thewtex](https://discourse.vtk.org/user_avatar/discourse.vtk.org/thewtex/32/55_2.png) [@thewtex](https://discourse.vtk.org/u/thewtex)
#### Post date: [October 2, 2019, 4:42pm UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/6 "2019-10-02T16:42:27Z")

</div>

`ResizeSensor` from [css-element-queries](https://www.npmjs.com/package/css-element-queries) may be worth looking into:

> <https://github.com/Kitware/itk-vtk-viewer/blob/5abc2e1e1f2d48358764c1421dce212030550c91/src/createViewer.js#L244-L247>

---

<div class="post-metadata">

### Author: ![PBrockmann](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pbrockmann/32/524_2.png) [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)
#### Post date: [October 3, 2019, 10:34am UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/7 "2019-10-03T10:34:00Z")

</div>

Hi Matt,  
Thank you for your interest on this issue.  
So let me understand, do you confirm the strange behaviour on firefox ?  
Do you suggest me to implement a ResizeSensor ? I am afraid I will not be able to do that.

---

<div class="post-metadata">

### Author: ![thewtex](https://discourse.vtk.org/user_avatar/discourse.vtk.org/thewtex/32/55_2.png) [@thewtex](https://discourse.vtk.org/u/thewtex)
#### Post date: [October 3, 2019, 2:04pm UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/8 "2019-10-03T14:04:45Z")

</div>

> [@PBrockmann](#):
>
> So let me understand, do you confirm the strange behaviour on firefox ?

Yes.

> [@PBrockmann](#):
>
> Do you suggest me to implement a ResizeSensor ? I am afraid I will not be able to do that.

This may be a limitation of the jQuery resize functionality.

---

<div class="post-metadata">

### Author: ![PBrockmann](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pbrockmann/32/524_2.png) [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)
#### Post date: [October 3, 2019, 2:28pm UTC](https://discourse.vtk.org/t/resize-renderwindow-problem-only-with-firefox/1242/9 "2019-10-03T14:28:34Z")

</div>

I have posted a question on [https://gitter.im/jquery/jquery](https://gitter.im/jquery/jquery)
