mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-22 17:11:43 +03:00
Fix bug with lane menu location after scroll
This commit is contained in:
parent
1e4e3be1bb
commit
e70dd4558e
@ -14,7 +14,8 @@
|
||||
}
|
||||
|
||||
export function openByElement(elt: HTMLElement, item: any) {
|
||||
show(elt.offsetLeft + elt.clientWidth, elt.offsetTop + elt.clientHeight, item);
|
||||
const rect = elt.getBoundingClientRect();
|
||||
show(rect.left + rect.width, rect.top + rect.height, item);
|
||||
}
|
||||
|
||||
function show(x: number, y: number, newItem: any) {
|
||||
|
Loading…
Reference in New Issue
Block a user