src/js/widgets/tooltipWidget.js
branchpopcorn-port
changeset 646 2b8b2a94ee92
parent 579 179b32df9caa
child 685 973d9a495d11
equal deleted inserted replaced
645:0c8ca890c9f1 646:2b8b2a94ee92
    28     return;
    28     return;
    29 
    29 
    30   this.selector.find(".tipcolor").css("background-color", color);
    30   this.selector.find(".tipcolor").css("background-color", color);
    31   this._displayedText = text;
    31   this._displayedText = text;
    32 	this.selector.find(".tiptext").text(text);
    32 	this.selector.find(".tiptext").text(text);
    33   //this.selector.find(".tip").css("left", x).css("top", y);  
    33   
       
    34   if (x < 0)
       
    35     x = 0;
       
    36   if (y < 0)
       
    37     y = 0;
       
    38   
    34   this.selector.find(".tip").css("left", x).css("top", y);
    39   this.selector.find(".tip").css("left", x).css("top", y);
    35   this.selector.find(".tip").show();
    40   this.selector.find(".tip").show();
    36   this._shown = true;
    41   this._shown = true;
    37 };
    42 };
    38 
    43