cursors should start in hidden state
This commit is contained in:
parent
9179b04438
commit
4ab41d02cc
1 changed files with 4 additions and 10 deletions
|
|
@ -45,6 +45,7 @@ var Cursor = function(parentEl) {
|
||||||
|
|
||||||
this.cursors = [];
|
this.cursors = [];
|
||||||
this.cursor = this.addCursor();
|
this.cursor = this.addCursor();
|
||||||
|
dom.addCssClass(this.element, "ace_hidden-cursors");
|
||||||
};
|
};
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
@ -146,12 +147,8 @@ var Cursor = function(parentEl) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getPixelPosition = function(position, onScreen) {
|
this.getPixelPosition = function(position, onScreen) {
|
||||||
if (!this.config || !this.session) {
|
if (!this.config || !this.session)
|
||||||
return {
|
return {left : 0, top : 0};
|
||||||
left : 0,
|
|
||||||
top : 0
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!position)
|
if (!position)
|
||||||
position = this.session.selection.getCursor();
|
position = this.session.selection.getCursor();
|
||||||
|
|
@ -161,10 +158,7 @@ var Cursor = function(parentEl) {
|
||||||
var cursorTop = (pos.row - (onScreen ? this.config.firstRowScreen : 0)) *
|
var cursorTop = (pos.row - (onScreen ? this.config.firstRowScreen : 0)) *
|
||||||
this.config.lineHeight;
|
this.config.lineHeight;
|
||||||
|
|
||||||
return {
|
return {left : cursorLeft, top : cursorTop};
|
||||||
left : cursorLeft,
|
|
||||||
top : cursorTop
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.update = function(config) {
|
this.update = function(config) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue