@@ 367-384 (lines=18) @@ | ||
364 | if (openType == "top") { x = srcX - 1; y = srcY - h + 2; } |
|
365 | ||
366 | // overflow check |
|
367 | if (this.fixedPosition) { |
|
368 | // use fixed document.body/window dimension if required |
|
369 | var mx = 65536; |
|
370 | var my = 65536; |
|
371 | } else { |
|
372 | var mx = (this.menuX2!=null?this.menuX2:0); |
|
373 | var my = (this.menuY2!=null?this.menuY2:0); |
|
374 | ||
375 | if (mx == 0) { |
|
376 | if (window.innerWidth) { |
|
377 | mx = window.innerWidth; |
|
378 | my = window.innerHeight; |
|
379 | } else { |
|
380 | mx = document.body.offsetWidth; |
|
381 | my = document.body.scrollHeight; |
|
382 | } |
|
383 | } |
|
384 | } |
|
385 | if (x+w > mx && !this._rtl) { |
|
386 | // no space on right, open to left |
|
387 | x = srcX - w + 2; |
@@ 354-371 (lines=18) @@ | ||
351 | if (openType == "top") { x = srcX - 1; y = srcY - h + 2; } |
|
352 | ||
353 | // overflow check |
|
354 | if (this.fixedPosition) { |
|
355 | // use fixed document.body/window dimension if required |
|
356 | var mx = 65536; |
|
357 | var my = 65536; |
|
358 | } else { |
|
359 | var mx = (this.menuX2!=null?this.menuX2:0); |
|
360 | var my = (this.menuY2!=null?this.menuY2:0); |
|
361 | ||
362 | if (mx == 0) { |
|
363 | if (window.innerWidth) { |
|
364 | mx = window.innerWidth; |
|
365 | my = window.innerHeight; |
|
366 | } else { |
|
367 | mx = document.body.offsetWidth; |
|
368 | my = document.body.scrollHeight; |
|
369 | } |
|
370 | } |
|
371 | } |
|
372 | if (x+w > mx && !this._rtl) { |
|
373 | // no space on right, open to left |
|
374 | x = srcX - w + 2; |