search for: viewportoffset

Displaying 4 results from an estimated 4 matches for "viewportoffset".

2008 Mar 15
0
Prototype viewportOffset browser problem
hi folks, i have a problem with the Element.viewportOffset() method.. here''s a little demonstration script -> http://audiovandalen.com/dev/scripttests/viewport/ if you hover the first row of the table its viewportOffset().top says 101 now, if you scroll down to the end and hover row #3, it also says (and should respectively) 101, because its...
2007 Oct 04
0
Getting mouse position from a timed function - My Solution
...bserve(''mousemove'', this.boundUpdatePosition); }, stop: function(){ this.bodyEl.stopObserving(''mousemove'', this.boundUpdatePosition); }, within: function(element){ //is the cursor within the given element? Return bool var el = $(element); var vpo = el.viewportOffset(); return (this.x > vpo[0] && this.x < vpo[0] + el.getWidth() && this.y > vpo[1] && this.y < vpo[1] + el.getHeight()); } }); Once you have that included in your page, you can use it like this... //Start capturing mouse position. var pointer = ne...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...return element; - }; -} - if (Prototype.Browser.Opera) { Element.Methods.getStyle = Element.Methods.getStyle.wrap( function(proceed, element, style) { @@ -2237,12 +2219,36 @@ if (Prototype.Browser.Opera) { } else if (Prototype.Browser.IE) { - $w('positionedOffset getOffsetParent viewportOffset').each(function(method) { + // IE doesn't report offsets correctly for static elements, so we change them + // to "relative" to get the values, then change them back. + Element.Methods.getOffsetParent = Element.Methods.getOffsetParent.wrap( + function(proceed, element) { +...
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