Commit 3b8eeeb6 authored by Ermolaev Timur's avatar Ermolaev Timur

#66 поправил окончательно логику отображения модалки

parent 1611ef67
......@@ -37,7 +37,8 @@ export default function ModalTask({modal, handleClose, children}) {
if (windowDimenion.winWidth > modal.xClickСordinates + 270 + modal.xDiv) {
return modal.xClickСordinates + modal.xDiv - modal.xDivClick + 10
} else {
return modal.xClickСordinates - modal.xDivClick - ((modal.yClickСordinates + 270) - windowDimenion.winHeight)
return windowDimenion.winWidth - (windowDimenion.winWidth - modal.xClickСordinates) - modal.xDivClick - 270 - 80
// return modal.xClickСordinates - (windowDimenion.winWidth - (modal.yClickСordinates + 270)) + modal.xDiv + modal.xDivClick
}
}
const style = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment