mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 14:39:58 +02:00
Fix zen sidebar splitters when pinned.
This commit is contained in:
parent
86992a27cb
commit
72e57f1f00
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@ var gZenBrowserManagerSidebar = {
|
||||||
let newSize = sidebarSizeStart + mouseMoved;
|
let newSize = sidebarSizeStart + mouseMoved;
|
||||||
let currentMax = maxSize;
|
let currentMax = maxSize;
|
||||||
const wrapperBox = this.sidebarWrapper.getBoundingClientRect();
|
const wrapperBox = this.sidebarWrapper.getBoundingClientRect();
|
||||||
const maxWrapperSize = reverse ? (sidebarPosStart + sidebarSizeStart) : (wrapperBox[direction] - sidebarPosStart);
|
let maxWrapperSize = Infinity;
|
||||||
|
if (this.isFloating) {
|
||||||
|
maxWrapperSize = reverse ? (sidebarPosStart + sidebarSizeStart) : (wrapperBox[direction] - sidebarPosStart);
|
||||||
|
}
|
||||||
newSize = Math.max(minSize, Math.min(currentMax, maxWrapperSize,newSize));
|
newSize = Math.max(minSize, Math.min(currentMax, maxWrapperSize,newSize));
|
||||||
|
|
||||||
if (reverse) {
|
if (reverse) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue