mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-03 15:06:01 +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) {
|
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) {
|
function show(x: number, y: number, newItem: any) {
|
||||||
|
Loading…
Reference in New Issue
Block a user