forked from 0x2620/oxjs
catch some global vars
This commit is contained in:
parent
56370aa0a7
commit
1deb616942
8 changed files with 9 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue