Web: Components: DropDown: Fixed position conditions

This commit is contained in:
Ilya Oleshko 2021-10-21 12:06:51 +03:00 committed by AlexeySafronov
parent d7547a11a1
commit 21212046ad

View File

@ -80,7 +80,7 @@ class DropDown extends React.PureComponent {
const left = rects.left < 0 && rects.width < container.width;
const right =
rects.width &&
rects.left < 250 &&
rects.left < (rects.width || 250) &&
rects.left > rects.width &&
rects.width < container.width;
const top = rects.bottom > container.height && rects.top > rects.height;