loleaflet: Set correct initial position of the comment
Otherwise the comment is animated from the bottom of the document to the correct position and it confuses IE. Better to set the correct position of the comment initially, so it doesn't have to animate all the way through to the original position. Change-Id: Ie59e2d785b6a778f3c918082a1a8cb7b2923cc33
This commit is contained in:
parent
d5cdd776cf
commit
18e5fb50f6
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ L.AnnotationManager = L.Class.extend({
|
|||
},
|
||||
|
||||
add: function (comment) {
|
||||
var annotation = L.annotation(this._map.options.maxBounds.getSouthEast(), comment,
|
||||
var annotation = L.annotation(this._map._docLayer._twipsToLatLng(comment.anchorPos.getTopRight()), comment,
|
||||
comment.id === 'new' ? {noMenu: true} : {}).addTo(this._map);
|
||||
if (comment.parent && comment.parent > '0') {
|
||||
var parentIdx = this.getIndexOf(comment.parent);
|
||||
|
|
Loading…
Reference in a new issue