mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:59:59 +02:00
Fix splitview drag and drop wrong size
This commit is contained in:
parent
a5db255ab7
commit
eca3ecd04c
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
|||
node.parent.children[nodeIndex] = newParent;
|
||||
newParent.addChild(node);
|
||||
}
|
||||
node.sizeInParent = 100 - (nodeSize * sizeOfInsertedNode);
|
||||
node.sizeInParent = (1 - sizeOfInsertedNode) * nodeSize;
|
||||
nodeToInsert.sizeInParent = nodeSize * sizeOfInsertedNode;
|
||||
|
||||
const index = newParent.children.indexOf(node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue