Use consistent window size properties to improve popup positioning (#1607)
This commit is contained in:
parent
331b164900
commit
b23c4bff4b
@ -664,11 +664,10 @@ class Popup extends EventDispatcher {
|
||||
}
|
||||
}
|
||||
|
||||
const body = document.body;
|
||||
return {
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: (body !== null ? body.clientWidth : 0),
|
||||
right: window.innerWidth,
|
||||
bottom: window.innerHeight
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user