caplin / FlexLayout

Docking Layout Manager for React
MIT License
919 stars 173 forks source link

resizeObserver observe high frequency resize action inside Tabset #406

Open Julia95Qian opened 12 months ago

Julia95Qian commented 12 months ago

Describe the bug

the minimum example attached under:

FlexLayout_cra_example.zip

Your Example Website or App

https://github.com/Julia95Qian/flexlayout-react

Steps to Reproduce the Bug or Issue

  1. npm install and start, Tabset One and Tabset Two has scrollbar inside and windows are falshing image
  2. add style {{display: flex}} to the window, maximize Tabset One and then minimize it, console log shows it resizes twice when its minimized.

Expected behavior

  1. the window in Tabset can fully spread
  2. maximize and minimize will not cause several resize actions but once

Operating System

Windows

Browser Type?

Chrome

Browser Version

116

Screenshots or Videos

https://github.com/caplin/FlexLayout/assets/51627103/08d1d41d-5a52-4534-a38e-6596832a5cd9

display: flex https://github.com/caplin/FlexLayout/assets/51627103/11e9c9ca-939f-474d-9125-1301bb388f79

Additional context

No response