Ignore:
Timestamp:
Jun 24, 2014, 10:16:59 PM (10 years ago)
Author:
rvelices
Message:

upgrade jquery ui from 1.10.1 to 1.10.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/js/ui/jquery.ui.position.js

    r20824 r28780  
    11/*!
    2  * jQuery UI Position 1.10.1
     2 * jQuery UI Position 1.10.4
    33 * http://jqueryui.com
    44 *
    5  * Copyright 2013 jQuery Foundation and other contributors
     5 * Copyright 2014 jQuery Foundation and other contributors
    66 * Released under the MIT license.
    77 * http://jquery.org/license
     
    7171                }
    7272                var w1, w2,
    73                         div = $( "<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
     73                        div = $( "<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
    7474                        innerDiv = div.children()[0];
    7575
     
    8989        },
    9090        getScrollInfo: function( within ) {
    91                 var overflowX = within.isWindow ? "" : within.element.css( "overflow-x" ),
    92                         overflowY = within.isWindow ? "" : within.element.css( "overflow-y" ),
     91                var overflowX = within.isWindow || within.isDocument ? "" :
     92                                within.element.css( "overflow-x" ),
     93                        overflowY = within.isWindow || within.isDocument ? "" :
     94                                within.element.css( "overflow-y" ),
    9395                        hasOverflowX = overflowX === "scroll" ||
    9496                                ( overflowX === "auto" && within.width < within.element[0].scrollWidth ),
     
    9698                                ( overflowY === "auto" && within.height < within.element[0].scrollHeight );
    9799                return {
    98                         width: hasOverflowX ? $.position.scrollbarWidth() : 0,
    99                         height: hasOverflowY ? $.position.scrollbarWidth() : 0
     100                        width: hasOverflowY ? $.position.scrollbarWidth() : 0,
     101                        height: hasOverflowX ? $.position.scrollbarWidth() : 0
    100102                };
    101103        },
    102104        getWithinInfo: function( element ) {
    103105                var withinElement = $( element || window ),
    104                         isWindow = $.isWindow( withinElement[0] );
     106                        isWindow = $.isWindow( withinElement[0] ),
     107                        isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9;
    105108                return {
    106109                        element: withinElement,
    107110                        isWindow: isWindow,
     111                        isDocument: isDocument,
    108112                        offset: withinElement.offset() || { left: 0, top: 0 },
    109113                        scrollLeft: withinElement.scrollLeft(),
     
    437441                        }
    438442                        else if ( overBottom > 0 ) {
    439                                 newOverTop = position.top -  data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
     443                                newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
    440444                                if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {
    441445                                        position.top += myOffset + atOffset + offset;
Note: See TracChangeset for help on using the changeset viewer.