Fixed CodeMirror editor view height in studio.

TNL-920
This commit is contained in:
Waheed Ahmed
2014-12-09 16:22:57 +05:00
parent f733d1d8bd
commit 2ffe6032bf
3 changed files with 8 additions and 0 deletions

View File

@@ -222,6 +222,10 @@
height: 365px;
}
.CodeMirror-advanced {
height: 435px;
}
.wrapper-comp-settings {
.list-input {

View File

@@ -62,6 +62,7 @@ Write a persuasive essay to a newspaper reflecting your views on censorship in l
$(@element.find('.xml-box')).hide()
else
@createXMLEditor()
@xml_editor.display.wrapper.className += " CodeMirror-advanced";
@alertTaskRubricModification()
@@ -92,6 +93,7 @@ Write a persuasive essay to a newspaper reflecting your views on censorship in l
@toggleCheatsheetVisibility()
if @confirmConversionToXml()
@createXMLEditor(OpenEndedMarkdownEditingDescriptor.markdownToXml(@markdown_editor.getValue()))
@xml_editor.display.wrapper.className += " CodeMirror-advanced";
# Need to refresh to get line numbers to display properly (and put cursor position to 0)
@xml_editor.setCursor(0)
@xml_editor.refresh()

View File

@@ -25,6 +25,7 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
$(@element.find('.xml-box')).hide()
else
@createXMLEditor()
@xml_editor.display.wrapper.className += " CodeMirror-advanced";
###
Creates the XML Editor and sets it as the current editor. If text is passed in,
@@ -53,6 +54,7 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
@toggleCheatsheetVisibility()
if @confirmConversionToXml()
@createXMLEditor(MarkdownEditingDescriptor.markdownToXml(@markdown_editor.getValue()))
@xml_editor.display.wrapper.className += " CodeMirror-advanced";
# Need to refresh to get line numbers to display properly (and put cursor position to 0)
@xml_editor.setCursor(0)
@xml_editor.refresh()