Open alhimik45 opened 2 months ago
In 2.0.0 still same issue with extra divs with .dv-split-view-container
class.
CSS workaround if anybody interested:
/* bug https://github.com/mathuo/dockview/issues/721 workaround */
.your-splitview-class > div.dv-split-view-container:not(:last-child) {
display: none;
}
Could not be suitable if state restoration is done very often as divs still remain in DOM and can cause memory issues.
Describe the bug
api.fromJSON
loads state of Splitview, but also adds two emptysplit-view-container
divsTo Reproduce Codesandbox with reproduction. Scroll preview up and you'll find bunch of extra empty space from that unexpected divs. Duplicating
api.fromJSON
call leads to increased number of emptysplit-view-container
divsExpected behavior Extra empty divs are not added to markup
Desktop: