convert autoScrollEditorIntoView into preoper option
This commit is contained in:
parent
cd12b25ea6
commit
4ed6afc829
1 changed files with 5 additions and 2 deletions
|
|
@ -2310,7 +2310,7 @@ var Editor = function(renderer, session) {
|
||||||
* @param {Boolean} enable default true
|
* @param {Boolean} enable default true
|
||||||
**/
|
**/
|
||||||
this.setAutoScrollEditorIntoView = function(enable) {
|
this.setAutoScrollEditorIntoView = function(enable) {
|
||||||
if (enable === false)
|
if (!enable)
|
||||||
return;
|
return;
|
||||||
var rect;
|
var rect;
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
@ -2352,7 +2352,7 @@ var Editor = function(renderer, session) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.setAutoScrollEditorIntoView = function(enable) {
|
this.setAutoScrollEditorIntoView = function(enable) {
|
||||||
if (enable === true)
|
if (enable)
|
||||||
return;
|
return;
|
||||||
delete this.setAutoScrollEditorIntoView;
|
delete this.setAutoScrollEditorIntoView;
|
||||||
this.removeEventListener("changeSelection", onChangeSelection);
|
this.removeEventListener("changeSelection", onChangeSelection);
|
||||||
|
|
@ -2409,6 +2409,9 @@ config.defineOptions(Editor.prototype, "editor", {
|
||||||
},
|
},
|
||||||
behavioursEnabled: {initialValue: true},
|
behavioursEnabled: {initialValue: true},
|
||||||
wrapBehavioursEnabled: {initialValue: true},
|
wrapBehavioursEnabled: {initialValue: true},
|
||||||
|
autoScrollEditorIntoView: {
|
||||||
|
set: function(val) {this.setAutoScrollEditorIntoView(val)}
|
||||||
|
},
|
||||||
|
|
||||||
hScrollBarAlwaysVisible: "renderer",
|
hScrollBarAlwaysVisible: "renderer",
|
||||||
vScrollBarAlwaysVisible: "renderer",
|
vScrollBarAlwaysVisible: "renderer",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue