Merge pull request #135 from MayhemYDG/dialog

Fix jumping dialogs
This commit is contained in:
James Campos 2011-05-25 09:40:07 -07:00
commit fff6c3548d
2 changed files with 4 additions and 2 deletions

View File

@ -225,9 +225,10 @@
top = clientY - 120;
bot = top + height;
el.style.top = ui.winHeight < height || top < 0 ? '0px' : bot > ui.winHeight ? ui.winHeight - height + 'px' : top + 'px';
return el.style.left = clientX + 45;
return el.style.left = clientX + 45 + 'px';
},
hoverend: function(e) {
ui.el.style.top = 'auto';
return $.hide(ui.el);
}
};

View File

@ -147,8 +147,9 @@ ui =
ui.winHeight - height + 'px'
else
top + 'px'
el.style.left = clientX + 45
el.style.left = clientX + 45 + 'px'
hoverend: (e) ->
ui.el.style.top = 'auto'
$.hide ui.el
#convenience