Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
OpenEdx
xblock-drag-and-drop-v2
Commits
17c63ea0
Commit
17c63ea0
authored
Oct 25, 2017
by
Matjaz Gregoric
Committed by
GitHub
Oct 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #143 from edx-solutions/mtyaka/fix-mobile-popup-position
Use fixed positioning for mobile popups.
parents
621c7ba2
c73c3d20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
drag_and_drop_v2/public/css/drag_and_drop.css
+9
-1
drag_and_drop_v2/public/js/drag_and_drop.js
+15
-5
No files found.
drag_and_drop_v2/public/css/drag_and_drop.css
View file @
17c63ea0
...
...
@@ -430,7 +430,6 @@
.xblock--drag-and-drop
.popup
{
position
:
absolute
;
display
:
none
;
top
:
5%
;
right
:
5%
;
border
:
1px
solid
#fff
;
...
...
@@ -503,12 +502,19 @@
}
.xblock--drag-and-drop
.popup
{
display
:
flex
;
flex-direction
:
column
;
background-color
:
#fff
;
border-radius
:
10px
;
text-align
:
center
;
box-shadow
:
0
0
100px
rgba
(
0
,
0
,
0
,
0.4
);
border
:
none
;
max-height
:
90vh
;
position
:
fixed
;
top
:
50%
;
left
:
50%
;
right
:
auto
;
transform
:
translate
(
-50%
,
-50%
);
}
.xblock--drag-and-drop
.popup
.close-feedback-popup-desktop-button
{
...
...
@@ -545,6 +551,8 @@
border-color
:
#eee
;
border-style
:
solid
;
border-width
:
1px
0
1px
0
;
flex-shrink
:
1
;
overflow
:
auto
;
}
.xblock--drag-and-drop
.popup
.popup-content
ul
{
...
...
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
17c63ea0
...
...
@@ -446,10 +446,15 @@ function DragAndDropTemplates(configuration) {
);
}
var
popup_style
=
{};
if
(
!
have_messages
)
{
popup_style
.
display
=
'none'
;
}
return
h
(
popupSelector
,
{
style
:
{
display
:
have_messages
?
'block'
:
'none'
}
style
:
popup_style
},
[
h
(
...
...
@@ -493,13 +498,18 @@ function DragAndDropTemplates(configuration) {
),
popup_content
,
h
(
'button.unbutton.close-feedback-popup-button.close-feedback-popup-mobile-button'
,
{},
'div'
,
[
h
(
'
spa
n'
,
'
button.unbutton.close-feedback-popup-button.close-feedback-popup-mobile-butto
n'
,
{},
gettext
(
"Close"
)
[
h
(
'span'
,
{},
gettext
(
"Close"
)
)
]
)
]
)
...
...
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