Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
3b8eeeb6
Commit
3b8eeeb6
authored
Nov 26, 2022
by
Ermolaev Timur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#66
поправил окончательно логику отображения модалки
parent
1611ef67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ModalTask.js
planner-front/src/components/UI/ModalTask/ModalTask.js
+2
-1
No files found.
planner-front/src/components/UI/ModalTask/ModalTask.js
View file @
3b8eeeb6
...
@@ -37,7 +37,8 @@ export default function ModalTask({modal, handleClose, children}) {
...
@@ -37,7 +37,8 @@ export default function ModalTask({modal, handleClose, children}) {
if
(
windowDimenion
.
winWidth
>
modal
.
xClick
С
ordinates
+
270
+
modal
.
xDiv
)
{
if
(
windowDimenion
.
winWidth
>
modal
.
xClick
С
ordinates
+
270
+
modal
.
xDiv
)
{
return
modal
.
xClick
С
ordinates
+
modal
.
xDiv
-
modal
.
xDivClick
+
10
return
modal
.
xClick
С
ordinates
+
modal
.
xDiv
-
modal
.
xDivClick
+
10
}
else
{
}
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
=
{
const
style
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment