Lines Matching refs:document
86 return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;
96 while ( elem.length && elem[ 0 ] !== document ) {
231 var body = document.body,
232 div = body.appendChild( div = document.createElement( "div" ) );
290 return document.compareDocumentPosition ?
599 $( document ).mouseup( function( e ) {
632 $(document)
683 $(document)
695 if ($.browser.msie && !(document.documentMode >= 9) && !event.button) {
714 $(document)
953 if (element == document ) {
1058 // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
1060 if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) {
1065 if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information
1110 if(o.containment == 'document' || o.containment == 'window') this.containment = [
1111 o.containment == 'document' ? 0 : $(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left,
1112 o.containment == 'document' ? 0 : $(window).scrollTop() - this.offset.relative.top - this.offset.parent.top,
1113 (o.containment == 'document' ? 0 : $(window).scrollLeft()) + $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left,
1114 (o.containment == 'document' ? 0 : $(window).scrollTop()) + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top
1117 if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
1141 var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
1162 var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
1422 if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset();
1428 if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {
1447 if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
1448 scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
1449 else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
1450 scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
1454 if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
1455 scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
1456 else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
1457 scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
2081 this.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
2499 if (/document/.test(oc) || oc == document) {
2504 element: $(document), left: 0, top: 0,
2505 width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight
2532 if (ce[0] != document && (/static/).test(ce.css('position'))) cop = co;
3102 if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML')
3146 if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML') {
3160 if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
3161 scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
3162 else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
3163 scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
3165 if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
3166 scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
3167 else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
3168 scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
3248 left: cur.left - this.offset.parent.left - self.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft),
3249 top: cur.top - this.offset.parent.top - self.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)
3562 var el = $(document.createElement(self.currentItem[0].nodeName))
3712 // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
3714 if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) {
3719 if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information
3762 if(o.containment == 'document' || o.containment == 'window') this.containment = [
3765 $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left,
3766 ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top
3769 if(!(/^(document|window|parent)$/).test(o.containment)) {
3788 var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
3809 var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
3813 // 2. and the scroll parent is the document or similar to the offset parent
3815 if(this.cssPosition == 'relative' && !(this.scrollParent[0] != document && this.scrollParent[0] != this.offsetParent[0])) {
4139 var style = document.defaultView
4140 ? document.defaultView.getComputedStyle(this, null)
4349 active = document.activeElement;
4357 active = document.body;
4392 active = document.activeElement;
5258 .appendTo(document.body)
6004 $( document ).one( 'mousedown', function( event ) {
6653 $( document ).one( "mouseup", function() {
6705 // we don't search against the document in case the element
7207 var browserWidth = document.documentElement.clientWidth;
7208 var browserHeight = document.documentElement.clientHeight;
7209 var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
7210 var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
7552 $.datepicker._pos[0] -= document.documentElement.scrollLeft;
7553 $.datepicker._pos[1] -= document.documentElement.scrollTop;
7619 inst.input.is(':visible') && !inst.input.is(':disabled') && inst.input[0] != document.activeElement)
7651 var viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft());
7652 var viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop());
7655 offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0;
7656 offset.top -= (isFixed && offset.top == (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;
8708 $(document).mousedown($.datepicker._checkExternalClick).
8781 // ensure that the titlebar is never outside the document
8812 .appendTo(document.body)
9125 doc = $(document),
9138 containment: 'document',
9180 containment: 'document',
9447 $(document).bind($.ui.dialog.overlay.events, function(event) {
9458 $(document).bind('keydown.dialog-overlay', function(event) {
9472 .appendTo(document.body)
9493 $([document, window]).unbind('.dialog-overlay');
9512 document.documentElement.scrollHeight,
9513 document.body.scrollHeight
9516 document.documentElement.offsetHeight,
9517 document.body.offsetHeight
9527 return $(document).height() + 'px';
9537 document.documentElement.scrollWidth,
9538 document.body.scrollWidth
9541 document.documentElement.offsetWidth,
9542 document.body.offsetWidth
9552 return $(document).width() + 'px';
9558 * right edge of the window, the document becomes wider so we
9560 * dialog back to the left, the document will become narrower,
9563 * to the full document size.
9845 var body = document.getElementsByTagName( "body" )[ 0 ],
9846 div = document.createElement( "div" ),
9850 testElement = document.createElement( body ? "div" : "body" );
9870 testElementParent = body || document.documentElement;