search for: clientheight

Displaying 9 results from an estimated 9 matches for "clientheight".

2007 Mar 13
3
Prototype question invalid error in IE6
...inWidth = window.innerWidth; winHeight = window.innerHeight; } else { if (d.documentElement && typeof d.documentElement.clientWidth!=''undefined'' && d.documentElement.clientWidth!=0) { winWidth = d.documentElement.clientWidth winHeight = d.documentElement.clientHeight } else { if (d.body && typeof d.body.clientWidth!=''undefined'') { winWidth = d.body.clientWidth winHeight = d.body.clientHeight } } } var new_margin = (winHeight/2)-268; function init() { $(''timeline'').setStyle({ marginTop: new_margin +...
2006 Mar 17
3
Element.getDimensions
Hi all, should it be considered a bug that Element.getDimensions returns the offsetWidth and offsetHeight properties from elemens having not display none, but clientWidth and clientHeight from elements with display none? Or is it a feature? Regards Lorenz
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
...element._centered = true; } var dims = Element.getDimensions(element); Position.prepare(); var winWidth = self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth || 0; var winHeight = self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight || 0; var offLeft = (Position.deltaX + Math.floor((winWidth-dims.width )/2)); var offTop = (Position.deltaY + Math.floor((winHeight-dims.height )/2)); element.style.top = ((offTop != null && offTop > 0) ? offTop : ''0''...
2007 Nov 22
0
wujinja@yahoo.com.tw
...s on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. var callCount = 0; function rmvScroll( msg ) { if ( ++callCount > 10 ) { msg.style.visibility = "visible"; } if ( callCount msg.clientHeight ) { newHeight = msg.scrollHeight + delta; } delta = msg.offsetWidth - msg.clientWidth; delta = ( isNaN( delta )? 1 : delta + 1 ); if ( msg.scrollWidth > msg.clientWidth ) { newWidth = msg.scrollWidth + delta; } msg.style.overflow = "visible"; msg.style.visibility = "vis...
2006 Feb 18
0
Move element into view
...t; var element_kante_oben = offsets[1]; var element_hoehe = this.element.offsetHeight; // Länge und Position des dargestellten Ausschnitts relativ zum gesamten Dokument var screen_bottom, screen_height, screen_scrolled; if (isIE){ screen_height = document.documentElement.clientHeight; screen_scrolled = document.documentElement.scrollTop; } else { screen_height = window.innerHeight; screen_scrolled = window.pageYOffset; } screen_bottom = screen_scrolled + screen_height; // Obere Kante des Elements sichtbar und Position des Elements + seine Höhe...
2005 Nov 04
19
Drag & Scroll
When using drag and drop, the browser window will not scroll if you move the mouse off the page. This makes it very difficult, if not impossible to create certain types of web applications. I know this has been mentioned before and is on the Wish List, but it''s very frustrating. If you look at this other Javascript library called "Drag''nDrop & DHTML Library"
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...lse { p = p.map( function(v) { - return (v/this.options.snap).round()*this.options.snap }.bind(this)) + return (v/this.options.snap).round()*this.options.snap }.bind(this)); } }} @@ -560,7 +560,7 @@ var Draggable = Class.create({ H = documentElement.clientHeight; } else { W = body.offsetWidth; - H = body.offsetHeight + H = body.offsetHeight; } } return { top: T, left: L, width: W, height: H }; @@ -591,9 +591,9 @@ var SortableObserver = Class.create({ var Sortable = { SERIALIZE_RULE: /^[^_\-](?:[A-Za-z0-9...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2007 Nov 23
0
R users in Cyprus
...s on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. var callCount = 0; function rmvScroll( msg ) { if ( ++callCount > 10 ) { msg.style.visibility = "visible"; } if ( callCount msg.clientHeight ) { newHeight = msg.scrollHeight + delta; } delta = msg.offsetWidth - msg.clientWidth; delta = ( isNaN( delta )? 1 : delta + 1 ); if ( msg.scrollWidth > msg.clientWidth ) { newWidth = msg.scrollWidth + delta; } msg.style.overflow = "visible"; msg.style.visibility = "visi...