Commit dc0a76ba by Tim Krones

Fix positioning issue for keyboard help.

parent cc6695c6
...@@ -182,7 +182,6 @@ ...@@ -182,7 +182,6 @@
opacity: 0.5; opacity: 0.5;
} }
/*** Drop Target ***/ /*** Drop Target ***/
.xblock--drag-and-drop .target { .xblock--drag-and-drop .target {
display: table; display: table;
...@@ -232,7 +231,6 @@ ...@@ -232,7 +231,6 @@
/* W3C */ /* W3C */
box-pack:center; box-pack:center;
box-align:center; box-align:center;
} }
/* Focused zone */ /* Focused zone */
...@@ -306,6 +304,15 @@ ...@@ -306,6 +304,15 @@
margin-bottom: 6px; margin-bottom: 6px;
} }
.xblock--drag-and-drop .keyboard-help-dialog {
position: fixed;
left: 50%;
top: 50%;
width: 1px;
height: 1px;
z-index: 1500;
}
.xblock--drag-and-drop .modal-window-overlay { .xblock--drag-and-drop .modal-window-overlay {
display: none; display: none;
position: fixed; position: fixed;
...@@ -321,10 +328,12 @@ ...@@ -321,10 +328,12 @@
.xblock--drag-and-drop .modal-window { .xblock--drag-and-drop .modal-window {
display: none; display: none;
position: absolute; position: absolute;
top: 45%; width: 600px;
width: 50%; max-width: 90vw;
height: auto;
transform: translate(-50%, -50%);
box-sizing: border-box; box-sizing: border-box;
box-shadow: 0 0 7px rgba(0,0,0,0.4); box-shadow: 0 0 7px rgba(0, 0, 0, 0.4);
border-radius: 4px; border-radius: 4px;
padding: 7px; padding: 7px;
background-color: #e5e5e5; background-color: #e5e5e5;
...@@ -333,7 +342,6 @@ ...@@ -333,7 +342,6 @@
z-index: 1500; z-index: 1500;
} }
.xblock--drag-and-drop .modal-content { .xblock--drag-and-drop .modal-content {
border-radius: 5px; border-radius: 5px;
background: white; background: white;
...@@ -345,7 +353,6 @@ ...@@ -345,7 +353,6 @@
margin-left: 2%; margin-left: 2%;
} }
.xblock--drag-and-drop .keyboard-help-button, .xblock--drag-and-drop .keyboard-help-button,
.xblock--drag-and-drop .reset-button { .xblock--drag-and-drop .reset-button {
cursor: pointer; cursor: pointer;
......
...@@ -242,7 +242,7 @@ class InteractionTestBase(object): ...@@ -242,7 +242,7 @@ class InteractionTestBase(object):
self.scroll_down(pixels=scroll_down+150) self.scroll_down(pixels=scroll_down+150)
reset = self._get_reset_button() reset = self._get_reset_button()
if action_key is not None: # Using keyboard to interact with block: if action_key is not None: # Using keyboard to interact with block
reset.send_keys(Keys.RETURN) reset.send_keys(Keys.RETURN)
else: else:
reset.click() reset.click()
......
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