1
0
Fork 0
forked from 0x2620/oxjs

extended video demo

This commit is contained in:
rolux 2011-05-14 21:32:49 +02:00
commit 4255470e29
5 changed files with 628 additions and 323 deletions

File diff suppressed because it is too large Load diff

View file

@ -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();