rc-dock icon indicating copy to clipboard operation
rc-dock copied to clipboard

Scrolling resets when the markup changes

Open lenski88 opened this issue 1 year ago • 3 comments

If you drag tabs, neighboring tabs may lose the scroll value. This can be seen in the examples. For example, here The jsx tab has scrolling, and if you move a new tab to it, creating two panels, the scrolling will reset, or if you move the jsx tab itself to another place in the markup

lenski88 avatar Sep 25 '24 06:09 lenski88

have you tried cached tab? https://ticlo.github.io/rc-dock/examples/#tab-cache

rinick avatar Sep 28 '24 02:09 rinick

Yes, I tried. are you saying that jsxTab is not cached in your examples? I had a problem with the scroll reset when resizing the size of the panels. The cached property was set to true, but the problem was that it generated a new id for the tab every time. Do you think there's still this problem?

lenski88 avatar Sep 30 '24 14:09 lenski88

have you tried cached tab? https://ticlo.github.io/rc-dock/examples/#tab-cache

@rinick If you add content to a cached tab so that scrolling appears, the scroll position may change when dragging. try changing the tab position several times

lenski88 avatar Jan 29 '25 12:01 lenski88