[PE] Fix tip for guide position

This commit is contained in:
Julia Radzhabova 2022-10-03 16:29:30 +03:00
parent 291c29706e
commit b9d8d1ee8a

View file

@ -2151,7 +2151,7 @@ define([
onTrackGuide: function(dPos, x, y) {
var tip = this.guideTip;
if (dPos === undefined) {
if (dPos === undefined || x<0 || y<0) {
if (!tip.isHidden && tip.ref) {
tip.ref.hide();
tip.ref = undefined;
@ -2183,7 +2183,7 @@ define([
tip.ref.show([-10000, -10000]);
tip.isHidden = false;
}
var showPoint = [x, y];
showPoint[0] += (this._XY[0] + 6);
showPoint[1] += (this._XY[1] - 20 - tip.ttHeight);
@ -2197,7 +2197,6 @@ define([
left: showPoint[0] + 'px'
});
}
}
},
SetDisabled: function(state) {