bvaughn / react-resizable-panels

https://react-resizable-panels.vercel.app/
MIT License
3.58k stars 124 forks source link

minSizePercentage and minSizePixels Attributes Trigger Excessive Reflows #337

Closed in-ch closed 2 months ago

in-ch commented 2 months ago

Thank you so much for the good library. I'm reporting on one issue.

When applying the minSizePercentage and minSizePixels attributes, each movement of the panel from end to end (when reaching the minimum size) triggers excessive reflows.

Reflows occurred at the areas highlighted in red in the attached image. This leads to frame drops, causing performance issues.

Before Applying minSizePercentage or minSizePixels

최적화3

After Applying minSizePercentage or minSizePixels

최적화전

bvaughn commented 2 months ago

I don’t see where you specified the version, but given the description of this issue it seems like you’re using an older version of this library. I don’t have the time to support older versions unfortunately. I suggest you update to the latest version for bug fixes, or if you can’t do that- I suggest you fork and try to fix the issue. If you want to submit a PR, I might be able to review and do a one off release but only if it’s small. (Sorry. This is a side project and I don’t have a lot of free time now.)

thank you for understanding 🙇 and thank you for the kind words

in-ch commented 2 months ago

Thank you. 😃

It turns out it was indeed a version issue. After updating the version, all the problems were resolved.

I appreciate your kindness. Have a great day. 🙇