search for: currentdelta

Displaying 3 results from an estimated 3 matches for "currentdelta".

2006 Apr 20
0
Sanity check of my Draggable code
...eciated - especially if I''m doing things the wrong way. Here''s the code: var colSpacer function initPage() { colSpacer = new Draggable(''colspacer'', { revert:false, constraint:''horizontal'', change: function (d) { dragColTo(d.currentDelta()) } }); } function dragColTo(delta) { var x = delta[0]; if(x < 10) { return; } document.getElementById(''navlinks'').style.width = (x - 8) + ''px''; document.getElementById(''content'').style.marginLeft = (x + 2) + '&...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...stener(this); Event.observe(this.handle, "mousedown", this.eventMouseDown); - + Draggables.register(this); }, - + destroy: function() { Event.stopObserving(this.handle, "mousedown", this.eventMouseDown); Draggables.unregister(this); }, - + currentDelta: function() { return([ parseInt(Element.getStyle(this.element,'left') || '0'), parseInt(Element.getStyle(this.element,'top') || '0')]); }, - + initDrag: function(event) { if(!Object.isUndefined(Draggable._dragging[this.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