This commit is contained in:
Timothy J. Baek 2024-10-20 00:47:43 -07:00
parent a922f4b2e7
commit c5952d62ad

View File

@ -482,6 +482,12 @@
const percentage = (300 / width) * 100; const percentage = (300 / width) * 100;
// set the minSize to the percentage, must be an integer // set the minSize to the percentage, must be an integer
minSize = !largeScreen ? 100 : Math.floor(percentage); minSize = !largeScreen ? 100 : Math.floor(percentage);
if (showSidepanel) {
if (pane && pane.isExpanded() && pane.getSize() < minSize) {
pane.resize(minSize);
}
}
} }
}); });