forked from 0x2620/oxjs
extended video demo
This commit is contained in:
parent
568629fb34
commit
4255470e29
5 changed files with 628 additions and 323 deletions
|
|
@ -34,8 +34,13 @@ Ox.Tooltip = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
// can pass event instead of x/y
|
||||
that.show = function(x, y) {
|
||||
var left, top, width, height;
|
||||
if (arguments.length == 1) {
|
||||
y = arguments[0].clientY;
|
||||
x = arguments[0].clientX;
|
||||
}
|
||||
$('.OxTooltip').remove(); // fixme: don't use DOM
|
||||
that.appendTo(Ox.UI.$body);
|
||||
width = that.width();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue