mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 22:23:28 +08:00
Fix dropdown position for full screen modals
This commit is contained in:
parent
f8a48946c6
commit
7f9af06f78
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ var dropdownSelector = (function() {
|
|||
var maxHeight = 0;
|
||||
const bottomTreshold = 280;
|
||||
|
||||
if (modalContainer.length && windowHeight - modalContainer.height() > bottomTreshold) {
|
||||
if (modalContainer.length && windowHeight !== modalContainer.height()) {
|
||||
let modalClientRect = modalContainer[0].getBoundingClientRect();
|
||||
windowHeight = modalContainer.height() + modalClientRect.top;
|
||||
containerPositionLeft -= modalClientRect.left;
|
||||
|
|
Loading…
Reference in a new issue