Skip to content

Commit 0a29aac

Browse files
devvaannshabose
authored andcommitted
fix: unable to expand sidebar with resize when its collapsed
1 parent 2a37ae4 commit 0a29aac

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/utils/Resizer.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,14 @@ define(function (require, exports, module) {
570570
if (_isPercentage(maxSize)) {
571571
maxSize = _percentageToPixels(maxSize, _sideBarMaxSize());
572572
}
573-
newSize = Math.min(newSize, maxSize);
573+
// Ignore a non-positive computed cap: it can only come from a
574+
// pathological layout (e.g. design mode + hidden sidebar makes
575+
// _sideBarMaxSize negative, so 1000% becomes a negative px cap
576+
// and pins every drag below zero). CSS max-width still enforces
577+
// the real visible limit in that mode.
578+
if (maxSize > 0) {
579+
newSize = Math.min(newSize, maxSize);
580+
}
574581
}
575582

576583
e.preventDefault();

0 commit comments

Comments
 (0)