[REACT] Error when resizing the code editor window
Posted: Tue Mar 21, 2023 1:23 pm
by eltonx
Hello,
When we expand the code editor (Gantt panel) and try to resize its window by dragging the panel edge, we get ResizeObserver loop limit exceeded warning.
We are using BryntumContainer <BryntumContainer {...containerConfig} />
Re: [REACT] Error when resizing the code editor window
Posted: Tue Mar 21, 2023 2:15 pm
by tasnim
Hi,
Could you please provide a runnable test case so we can reproduce and debug it? I'm not able to reproduce the issue.
Good Luck ,
Tasnim
Re: [REACT] Error when resizing the code editor window
Posted: Fri Mar 24, 2023 5:14 pm
by eltonx
Please see attached to repro the issue.
Re: [REACT] Error when resizing the code editor window
Posted: Fri Mar 24, 2023 6:08 pm
by mats
That's a browser bug I believe, and nothing to worry about (doesn't affect our components).
Re: [REACT] Error when resizing the code editor window
Posted: Fri Mar 24, 2023 7:02 pm
by eltonx
Hi Mats,
not sure i understand. We tried with Chrome, Firefox and Edge... same thing.
How do we fix this issue please?
Re: [REACT] Error when resizing the code editor window
Posted: Fri Mar 24, 2023 8:31 pm
by marcio
Hey eltonx,
Is that anything special to reproduce the behavior?
I tried with the code that you shared but it worked just fine on multiple browsers (as you'll see in the attached video).
Re: [REACT] Error when resizing the code editor window
Posted: Mon Mar 27, 2023 5:36 pm
by eltonx
Hi Marcio,
thanks for that. We did actually see this in one machine (linux server) where it didn't happen. However this was the exception, in 3-4 other dev machines, it happens all the time and with different browsers.
We really need help to find out what is going on with this. Perhaps some debug, additional logging, etc.
Thanks
Elton
Re: [REACT] Error when resizing the code editor window
Posted: Mon Mar 27, 2023 8:14 pm
by mats
Does it impact your app behavior?
Re: [REACT] Error when resizing the code editor window
Posted: Tue Mar 28, 2023 2:35 pm
by eltonx
Hi Mats,
If the users perform this operation and it crashes on them (as shown), it looks very unprofessional. The rest of the application will continue. So, it is an annoyance, not a show-stopper. Currently we are still developing the application (no external users yet) so there is still a bit of time but it should be fixed really.
The issue is in the controls, not browser(s).
Thanks
Elton
Re: [REACT] Error when resizing the code editor window
Posted: Tue Mar 28, 2023 5:58 pm
by mats
We're not 100% convinced it's not a browser bug, but would need to be debugged more deeply to confirm. An easy workaround for now, just don't show your error popup when the error is about the ResizeObserver.