Add "Persistent Horizontal Scroll" setting to editor demo

This commit is contained in:
Joe Cheng 2011-02-16 09:32:00 +08:00 • committed by Fabian Jakobs
commit 9e162f91b9
2 changed files with 7 additions and 0 deletions

View file

@ -268,6 +268,9 @@ exports.launch = function(env) {
bindCheckbox("highlight_selected_word", function(checked) {
env.editor.setHighlightSelectedWord(checked);
bindCheckbox("show_hscroll", function(checked) {
env.editor.renderer.setHScrollBarAlwaysVisible(checked);
});
function bindCheckbox(id, callback) {