Permalink
Browse files

Fixes #3

Editor area now has a fixed width and the editor defaults to line wrapping.
  • Loading branch information...
1 parent 1ed5430 commit 0d585c0c4bd10d663c78932b213370253777af64 @thadd committed Jun 6, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −2 app/assets/javascripts/surveys.js.coffee
  2. +1 −0 app/assets/stylesheets/layout.css.scss
@@ -16,9 +16,10 @@ $(document).ready ->
code_mirror = CodeMirror.fromTextArea(
$('#survey_xml')[0]
{
- tabSize: 2
- lineNumbers: true
fixedGutter: true
+ lineNumbers: true
+ lineWrapping: true
+ tabSize: 2
theme: 'rubyblue'
onCursorActivity: update_positions
onScroll: update_positions
@@ -27,6 +27,7 @@ body {
.CodeMirror-scroll {
height: 400px;
+ width: 770px;
}
label {

0 comments on commit 0d585c0

Please sign in to comment.