Fixed toggle cheatsheet not working on component editors.

STUD-1514
This commit is contained in:
Waheed Ahmed
2014-04-16 17:06:16 +05:00
parent 97d587c4c8
commit df96c17e65
6 changed files with 20 additions and 7 deletions

View File

@@ -51,14 +51,13 @@
@include transition(width .3s linear 0s);
&.shown {
width: 300px;
width: 20%;
height: 100%;
overflow-y: scroll;
}
.cheatsheet-wrapper {
width: 240px;
padding: 20px 30px;
padding: 10%;
}
h6 {

View File

@@ -51,14 +51,13 @@
@include transition(width .3s linear 0s);
&.shown {
width: 300px;
width: 20%;
height: 100%;
overflow-y: scroll;
}
.cheatsheet-wrapper {
width: 240px;
padding: 20px 30px;
padding: 10%;
}
h6 {

View File

@@ -94,6 +94,9 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
@cheatsheet = $($('#simple-editor-cheatsheet').html())
$(@markdown_editor.getWrapperElement()).append(@cheatsheet)
$(".CodeMirror").css({"overflow": "visible"})
$(".modal-content").css({"overflow-y": "visible", "overflow-x": "visible"})
setTimeout (=> @cheatsheet.toggleClass('shown')), 10
###