зеркало из https://github.com/mozilla/ace.git
Add "Persistent Horizontal Scroll" setting to editor demo
This commit is contained in:
Родитель
14ebde8b24
Коммит
9e162f91b9
|
@ -268,6 +268,9 @@ exports.launch = function(env) {
|
||||||
|
|
||||||
bindCheckbox("highlight_selected_word", function(checked) {
|
bindCheckbox("highlight_selected_word", function(checked) {
|
||||||
env.editor.setHighlightSelectedWord(checked);
|
env.editor.setHighlightSelectedWord(checked);
|
||||||
|
|
||||||
|
bindCheckbox("show_hscroll", function(checked) {
|
||||||
|
env.editor.renderer.setHScrollBarAlwaysVisible(checked);
|
||||||
});
|
});
|
||||||
|
|
||||||
function bindCheckbox(id, callback) {
|
function bindCheckbox(id, callback) {
|
||||||
|
|
|
@ -62,6 +62,10 @@
|
||||||
<label for="show_hidden">Show Invisibles</label>
|
<label for="show_hidden">Show Invisibles</label>
|
||||||
<input type="checkbox" name="show_hidden" id="show_hidden">
|
<input type="checkbox" name="show_hidden" id="show_hidden">
|
||||||
</td>
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<label for="show_hscroll">Persistent HScroll</label>
|
||||||
|
<input type="checkbox" name="show_hscroll" id="show_hscroll">
|
||||||
|
</td>
|
||||||
<td align="right" rowspan="2">
|
<td align="right" rowspan="2">
|
||||||
<img src="demo/logo.png">
|
<img src="demo/logo.png">
|
||||||
</td>
|
</td>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче