1
0
Fork 0
forked from 0x2620/oxjs

catch some global vars

This commit is contained in:
rlx 2011-11-05 17:27:11 +00:00
commit 1deb616942
8 changed files with 9 additions and 9 deletions

View file

@ -350,7 +350,7 @@ Ox.Menu = function(options, self) {
function mousemove(event) {
var item,
position,
$target = $(event.target);
$target = $(event.target),
$parent = $target.parent();
if ($parent.is('.OxCell')) {
$target = $parent;
@ -713,7 +713,7 @@ Ox.Menu = function(options, self) {
0, Ox.UI.$window.width() - that.width()
),
top = offset.top + self.options.offset.top + (self.options.side == 'bottom' ? height : 0),
menuHeight = that.$content.outerHeight(); // fixme: why is outerHeight 0 when hidden?
menuHeight = that.$content.outerHeight(), // fixme: why is outerHeight 0 when hidden?
menuMaxHeight = Math.floor(Ox.UI.$window.height() - top - 16);
if (self.options.parent) {
if (menuHeight > menuMaxHeight) {