Tooltip position sometimes is y < 0

(V5.0.4)

i had a short look into coding.

inside

webix.protoUI({
	name:"tooltip",  ....

in the show - function you check for X that it not may be less zero:

			if(positionX - this._settings.dx > this._contentobj.offsetWidth)
				positionX = pos.x;
			else {
				positionX = (pos.x - (this._settings.dx * 2)) - this._contentobj.offsetWidth;
				if(positionX <= 0) positionX = 0;
			}

for Y this is missing:

			if(positionY - this._settings.dy > this._contentobj.offsetHeight)
				positionY = pos.y;
			else 
				positionY = (pos.y - this._settings.dy) - this._contentobj.offsetHeight;

If you would add this missing

                  if(positionY <= 0) positionY = 0; 
 in the else-case tooltips may appear nicer ;-)

best regards
christian