Displaying 10 results from an estimated 10 matches for "scrollleft".
2008 Jun 05
0
Javascript & Scrolling
...rtical(value, element, slider) {
element.scrollTop = Math.round(value/
slider.maximum*(element.scrollHeight-element.offsetHeight));
}
// scroll the element horizontally based on its width and the
slider maximum value
function scrollHorizontal(value, element, slider) {
element.scrollLeft = Math.round(value/
slider.maximum*(element.scrollWidth-element.offsetWidth));
}
// disable vertical scrolling if text doesn''t overflow the div
if ($(''side_type'').scrollHeight <= $(''side_type'').offsetHeight) {
slider_t.setDisabled();...
2006 Jun 15
3
RE: Yahoo!-like Eventobjectemulation/abstractioninPrototype?
...);
this.srcElement = Event.element(event);
this.which = event.which || event.button;
this.button = event.button || event.which;
this.pageX = Event.pointerX(event);
this.pageY = Event.pointerY(event);
this.clientX = this.pageX - (document.documentElement.scrollLeft
|| document.body.scrollLeft);
this.clientY = this.pageY - (document.documentElement.scrollTop
|| document.body.scrollTop);
this.preventDefault = Event.stop.bind(Event, event);
this.stopPropagation = Event.stop.bind(Event, event);
}
} );
There are probably more things that would...
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"
2006 Jan 30
0
Draggable with auto-scroll
...bar would scroll itself immediately upon a
draggble within it being dragged, instead of only when the draggable
reached the bottom border of the scrollable div.
To fix this, I changed the Position.page to Position.cumulativeOffset
and commented out the 2 lines below it where you were adding the
scrollLeft and scrollTop values to the p[0] and p[1] values. Now it
works just fine. See the new updateDrag function below. Why were you
using Position.page?
updateDrag: function(event, pointer) {
if(!this.dragging) this.startDrag(event);
Position.prepare();
Droppables.show(pointer, this.el...
2006 Feb 21
7
non simultaneous effects
Hi all,
If I call this function bla:
function bla() {
Effect.Appear('some_element');
Effect.Appear('some_other_element');
}
Both effect happen at the same time. Is there a way to stop this from
happening? I mean, how can I delay the effect on 'some_other_element'
from happening until the effect on 'some_element' is finished?
thanks and regards,
Jeroen
2006 Jan 02
2
mouse position without event
Hello,
Is it possible somehow to get mouse coordinates without using the event
mechanism ?
I need to get the current mouse position to initialize some div position,
but not at page load
Tarek
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2006 Apr 08
0
autocomplete update element positioning in Opera
...op on a input control. I expect it to
report 0 but it report its current coordinate. So the update window goes
to a wrong location.
This is a block of code in Position.page
page: function(forElement) {
...
/*
do {
valueT -= element.scrollTop || 0;
valueL -= element.scrollLeft || 0;
} while (element = element.parentNode);
*/
If I comment out the valueT -= element.scrollTop stuff, the update position
perfectly in Opera. I wonder what that block of code is for?
wy
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKc...
2006 Feb 13
3
moofx - scriptaculous
...this.el = $(el);
this.setOptions(options);
this.now = 0;
},
increase: function() {
if (fm.param[''view''] == 3) {
// scroll left
this.el.scrollLeft = this.now;
} else if (fm.param[''view''] == 4) { // scroll top
this.el.scrollTop = this.now;
}
},
scroll: function(from,to) {
this....
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...element = forElement;
do {
- if (!Prototype.Browser.Opera || element.tagName == 'BODY') {
+ if (!Prototype.Browser.Opera || (element.tagName && (element.tagName.toUpperCase() == 'BODY'))) {
valueT -= element.scrollTop || 0;
valueL -= element.scrollLeft || 0;
}
@@ -2153,46 +2175,6 @@ Element._attributeTranslations = {
}
};
-
-if (!document.createRange || Prototype.Browser.Opera) {
- Element.Methods.insert = function(element, insertions) {
- element = $(element);
-
- if (Object.isString(insertions) || Object.isNumber(insertions)...
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