Skip to content
Snippets Groups Projects
Commit 33cebfcc authored by srosse's avatar srosse
Browse files

OO-4427: prevent the toggle button to obscure question on mobile devices

parent 39dd9fe2
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,16 @@ jQuery().ready(function() { ...@@ -125,7 +125,16 @@ jQuery().ready(function() {
if (!menuState.docked && menuState.open) { if (!menuState.docked && menuState.open) {
var l = jQuery('#o_main_left'); var l = jQuery('#o_main_left');
jQuery('#o_main_left_content').hide(); jQuery('#o_main_left_content').hide();
l.transition({'x': '-' + l.css('width'), 'y': 0, 'left': '5px'}, duration, function() { var mh = 0;
try {// no error for beautify
if(jQuery('#o_qti_run_title').length == 1) {
mh = mh - jQuery('#o_qti_run_title').height();
}
if(jQuery('#o_qti_run_infos').length == 1) {
mh = mh - jQuery('#o_qti_run_infos').height();
}
} catch(e) {}
l.transition({'x': '-' + l.css('width'), 'y': mh, 'left': '5px'}, duration, function() {
menuState.open = false; menuState.open = false;
}); });
} }
......
...@@ -272,6 +272,11 @@ img.o_hotspot_responsive[usemap] { ...@@ -272,6 +272,11 @@ img.o_hotspot_responsive[usemap] {
} }
} }
/* prevent the toggle to obscure the title of the question */
#o_main_wrapper #o_main_container #o_qti_run #o_main_left #o_main_left_toggle {
top : 50px;
}
#o_qti_results_infos { #o_qti_results_infos {
border: 1px solid $o-qti-run-infos-border-color; border: 1px solid $o-qti-run-infos-border-color;
border-radius: $o-qti-run-infos-border-radius; border-radius: $o-qti-run-infos-border-radius;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment