|
1 | 1 | /**
|
2 | 2 | * @preserve
|
3 |
| - * jquery.layout 1.8.5 |
4 |
| - * $Date: 2020-08-22 $ |
5 |
| - * $Rev: 1.8.5 $ |
| 3 | + * jquery.layout 1.9.0 |
| 4 | + * $Date: 2024-01-17 $ |
| 5 | + * $Rev: 1.9.0 $ |
6 | 6 | *
|
7 | 7 | * Copyright (c) 2014 Kevin Dalman (http://jquery-dev.com)
|
8 | 8 | * Based on work by Fabrizio Balliano (http://www.fabrizioballiano.net)
|
|
85 | 85 | * GENERIC $.layout METHODS - used by all layouts
|
86 | 86 | */
|
87 | 87 | $.layout = {
|
88 |
| - version: "1.8.4" |
89 |
| - , revision: 1.8004 // eg: ver 1.4.4 = rev 1.0404 - major(n+).minor(nn)+patch(nn+) |
| 88 | + version: "1.9.0" |
| 89 | + , revision: 1.9004 // eg: ver 1.4.4 = rev 1.0404 - major(n+).minor(nn)+patch(nn+) |
90 | 90 |
|
91 | 91 | // $.layout.browser REPLACES $.browser
|
92 | 92 | , browser: {} // set below
|
|
593 | 593 | , y = evt.pageY // evt.clientY ?
|
594 | 594 | ;
|
595 | 595 | // if X & Y are < 0, probably means is over an open SELECT
|
596 |
| - return ($.layout.browser.msie && x < 0 && y < 0) || ((x >= L && x <= R) && (y >= T && y <= B)); |
| 596 | + return ((x >= L && x <= R) && (y >= T && y <= B)); |
597 | 597 | }
|
598 | 598 |
|
599 | 599 | /**
|
|
664 | 664 | , m = /(chrome)[ \/]([\w.]+)/.exec(u)
|
665 | 665 | || /(webkit)[ \/]([\w.]+)/.exec(u)
|
666 | 666 | || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(u)
|
667 |
| - || /(msie) ([\w.]+)/.exec(u) |
668 | 667 | || u.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(u)
|
669 | 668 | || []
|
670 | 669 | , b = m[1] || ""
|
671 | 670 | , v = m[2] || 0
|
672 |
| - , ie = b === "msie" |
673 | 671 | , cm = document.compatMode
|
674 | 672 | , $s = $.support
|
675 | 673 | , bs = $s.boxSizing !== undefined ? $s.boxSizing : $s.boxSizingReliable
|
676 |
| - , bm = !ie || !cm || cm === "CSS1Compat" || $s.boxModel || false |
| 674 | + , bm = !cm || cm === "CSS1Compat" || $s.boxModel || false |
677 | 675 | , lb = $.layout.browser = {
|
678 | 676 | version: v
|
679 | 677 | , safari: b === "webkit" // webkit (NOT chrome) = safari
|
680 | 678 | , webkit: b === "chrome" // chrome = webkit
|
681 |
| - , msie: ie |
682 |
| - , isIE6: ie && v == 6 |
683 | 679 | // ONLY IE reverts to old box-model - Note that compatMode was deprecated as of IE8
|
684 | 680 | , boxModel: bm
|
685 | 681 | , boxSizing: !!(typeof bs === "function" ? bs() : bs)
|
|
913 | 909 | // layout/global options - NOT pane-options
|
914 | 910 | layout: ("name,instanceKey,stateManagement,effects,inset,zIndexes,errors,"
|
915 | 911 | + "zIndex,scrollToBookmarkOnLoad,showErrorMessages,maskPanesEarly,"
|
916 |
| - + "outset,resizeWithWindow,resizeWithWindowDelay,resizeWithWindowMaxDelay," |
| 912 | + + "outset,resizeWithWindow,resizeWithWindowDelay,resizeWithWindowMaxDelay,iframeFix," |
917 | 913 | + "onresizeall,onresizeall_start,onresizeall_end,onload,onload_start,onload_end,onunload,onunload_start,onunload_end").split(",")
|
918 | 914 | // borderPanes: [ ALL options that are NOT specified as 'layout' ]
|
919 | 915 | // default.panes options that apply to the center-pane (most options apply _only_ to border-panes)
|
920 | 916 | , center: ("paneClass,contentSelector,contentIgnoreSelector,findNestedContent,applyDemoStyles,triggerEventsOnLoad,"
|
921 |
| - + "showOverflowOnHover,maskContents,maskObjects,liveContentResizing," |
| 917 | + + "showOverflowOnHover,maskContents,maskObjects,liveContentResizing,iframeFix," |
922 | 918 | + "containerSelector,children,initChildren,resizeChildren,destroyChildren,"
|
923 | 919 | + "onresize,onresize_start,onresize_end,onsizecontent,onsizecontent_start,onsizecontent_end").split(",")
|
924 | 920 | // options that MUST be specifically set 'per-pane' - CANNOT set in the panes (defaults) key
|
|
2042 | 2038 | , margin: 0
|
2043 | 2039 | });
|
2044 | 2040 | // BODY
|
2045 |
| - if (browser.isIE6) { |
2046 |
| - // IE6 CANNOT use the trick of setting absolute positioning on all 4 sides - must have 'height' |
2047 |
| - $N.css({ |
2048 |
| - width: "100%" |
2049 |
| - , height: "100%" |
2050 |
| - , border: "none" // no border or padding allowed when using height = 100% |
2051 |
| - , padding: 0 // ditto |
2052 |
| - , margin: 0 |
2053 |
| - , position: "relative" |
2054 |
| - }); |
2055 |
| - // convert body padding to an inset option - the border cannot be measured in IE6! |
2056 |
| - if (!o.inset) |
2057 |
| - o.inset = elDims($N).inset; |
2058 |
| - } else { // use absolute positioning for BODY to allow borders & padding without overflow |
2059 |
| - $N.css({ |
| 2041 | + $N.css({ |
2060 | 2042 | width: "auto"
|
2061 | 2043 | , height: "auto"
|
2062 | 2044 | , margin: 0
|
2063 | 2045 | , position: "absolute" // allows for border and padding on BODY
|
2064 | 2046 | });
|
2065 | 2047 | // apply edge-positioning created above
|
2066 |
| - $N.css(o.outset); |
2067 |
| - } |
| 2048 | + $N.css(o.outset); |
2068 | 2049 | // set current layout-container dimensions
|
2069 | 2050 | $.extend(sC, elDims($N, o.inset)); // passing inset means DO NOT include insetX values
|
2070 | 2051 | } else {
|
|
2474 | 2455 | // ELSE setAsOpen() - called later by initHandles()
|
2475 | 2456 |
|
2476 | 2457 | // RESET visibility now - pane will appear IF display:block
|
2477 |
| - $P.css("visibility", "visible"); |
| 2458 | + // $P.css("visibility", "visible"); |
2478 | 2459 |
|
2479 | 2460 | // check option for auto-handling of pop-ups & drop-downs
|
2480 | 2461 | if (o.showOverflowOnHover)
|
|
3917 | 3898 | // if pane is positioned 'off-screen', then DO NOT screw with it!
|
3918 | 3899 | else if (pane == "east" && !$P.css("left").match(/\-99999/))
|
3919 | 3900 | $P.css({left: "auto"});
|
3920 |
| - // fix anti-aliasing in IE - only needed for animations that change opacity |
3921 |
| - if (browser.msie && o.fxOpacityFix && o.fxName_open != "slide" && $P.css("filter") && $P.css("opacity") == 1) |
3922 |
| - $P[0].style.removeAttribute('filter'); |
3923 | 3901 | }
|
3924 | 3902 | }
|
3925 | 3903 |
|
|
4444 | 4422 | * TODO: Sounds like a job for $P.outerWidth( sC.innerWidth ) SETTER METHOD
|
4445 | 4423 | */
|
4446 | 4424 | if (pane === "center") { // finished processing midPanes
|
4447 |
| - var fix = browser.isIE6 || !browser.boxModel; |
| 4425 | + var fix = !browser.boxModel; |
4448 | 4426 | if ($Ps.north && (fix || state.north.tagName == "IFRAME"))
|
4449 | 4427 | $Ps.north.css("width", cssW($Ps.north, sC.innerWidth));
|
4450 | 4428 | if ($Ps.south && (fix || state.south.tagName == "IFRAME"))
|
|
5423 | 5401 |
|
5424 | 5402 | )(jQuery);
|
5425 | 5403 |
|
5426 |
| - |
5427 |
| - /** |
5428 |
| - * Cookie plugin |
5429 |
| - * |
5430 |
| - * Copyright (c) 2006 Klaus Hartl (stilbuero.de) |
5431 |
| - * Dual licensed under the MIT and GPL licenses: |
5432 |
| - * http://www.opensource.org/licenses/mit-license.php |
5433 |
| - * http://www.gnu.org/licenses/gpl.html |
5434 |
| - * |
5435 |
| - */ |
5436 |
| - /*jQuery.cookie = function (name, value, options) { |
5437 |
| - if (typeof value != 'undefined') { // name and value given, set cookie |
5438 |
| - options = options || {}; |
5439 |
| - if (value === null) { |
5440 |
| - value = ''; |
5441 |
| - options.expires = -1; |
5442 |
| - } |
5443 |
| - var expires = ''; |
5444 |
| - if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { |
5445 |
| - var date; |
5446 |
| - if (typeof options.expires == 'number') { |
5447 |
| - date = new Date(); |
5448 |
| - date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); |
5449 |
| - } else { |
5450 |
| - date = options.expires; |
5451 |
| - } |
5452 |
| - expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE |
5453 |
| - } |
5454 |
| - // CAUTION: Needed to parenthesize options.path and options.domain |
5455 |
| - // in the following expressions, otherwise they evaluate to undefined |
5456 |
| - // in the packed version for some reason... |
5457 |
| - var path = options.path ? '; path=' + (options.path) : ''; |
5458 |
| - var domain = options.domain ? '; domain=' + (options.domain) : ''; |
5459 |
| - var secure = options.secure ? '; secure; samesite=' + options.sameSite : ''; |
5460 |
| - var httpOnly = options.httpOnly ? '; HttpOnly' : ''; |
5461 |
| - document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); |
5462 |
| - } else { // only name given, get cookie |
5463 |
| - var cookieValue = null; |
5464 |
| - if (document.cookie && document.cookie != '') { |
5465 |
| - var cookies = document.cookie.split(';'); |
5466 |
| - for (var i = 0; i < cookies.length; i++) { |
5467 |
| - var cookie = String.prototype.trim(cookies[i]); |
5468 |
| - // Does this cookie string begin with the name we want? |
5469 |
| - if (cookie.substring(0, name.length + 1) == (name + '=')) { |
5470 |
| - cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); |
5471 |
| - break; |
5472 |
| - } |
5473 |
| - } |
5474 |
| - } |
5475 |
| - return cookieValue; |
5476 |
| - } |
5477 |
| - }; |
5478 |
| - */ |
5479 |
| - |
5480 | 5404 | /**
|
5481 | 5405 | * @preserve jquery.layout.state 1.0
|
5482 | 5406 | * $Date: 2011-07-16 08:00:00 (Sat, 16 July 2011) $
|
|
6090 | 6014 | , v = b.version
|
6091 | 6015 | , r, sW, cW
|
6092 | 6016 | ;
|
6093 |
| - // we can ignore all browsers that fire window.resize event onZoom |
6094 |
| - if (!b.msie || v > 8) |
6095 |
| - return false; // don't need to track zoom |
6096 | 6017 | if (s.deviceXDPI && s.systemXDPI) // syntax compiler hack
|
6097 | 6018 | return calc(s.deviceXDPI, s.systemXDPI);
|
6098 | 6019 | // everything below is just for future reference!
|
|
0 commit comments