Index: experimental/webtry/res/js/webtry.js |
diff --git a/experimental/webtry/res/js/webtry.js b/experimental/webtry/res/js/webtry.js |
index b673e09239e186fe08151dde647567a1e2e393f5..30dac5b90afbb0d15e184625f3f5ca0b3b3b3137 100644 |
--- a/experimental/webtry/res/js/webtry.js |
+++ b/experimental/webtry/res/js/webtry.js |
@@ -144,13 +144,15 @@ |
theme: "default", |
lineNumbers: true, |
matchBrackets: true, |
+ lineWrapping: true, |
mode: "text/x-c++src", |
indentUnit: 4, |
}); |
- // Match the initial textarea size. |
+ // Match the initial textarea width, but leave the height alone |
+ // The css will automatically resize the editor vertically. |
editor.setSize(editor.defaultCharWidth() * code.cols, |
- editor.defaultTextHeight() * code.rows); |
+ null); |
/** |