mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 20:23:16 +08:00
Fix issue calculating flyout position [SCI-10367]
This commit is contained in:
parent
3df70bdaf3
commit
4e767155bc
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export default {
|
|||
flyout.style.minWidth = `${width}px`;
|
||||
}
|
||||
|
||||
if (window.innerWidth - flyoutRect.right < 0) { // when flyout is out of screen
|
||||
if (window.innerWidth - (field.x + flyoutRect.width) < 0) { // when flyout is out of screen
|
||||
flyout.style.left = 'unset';
|
||||
flyout.style.right = `${width - Math.abs(right)}px`;
|
||||
} else if (this.position === 'right') {
|
||||
|
|
Loading…
Reference in a new issue