search for: offsetx

Displaying 8 results from an estimated 8 matches for "offsetx".

Did you mean: offset
2006 Feb 03
1
Stupid drag/drop add on
..., just needed a quick/dirty hack. Plus I installed script.aculo.us just 10 minutes ago :) Don''t flame pls. Manuele line:202 (please note the "," after snap: false) snap: false, // false, or xy or [x,y] or function(x,y){ return [x,y] } area: false // false, or [x,y,offsetX,offsetY] line:357 var style = this.element.style; if (this.options.area) { if (p[0] < this.options.area[0]) p[0] = this.options.area[0]; if (p[0] > this.options.area[0]+this.options.area[2]) p[0] = this.options.area[0]+this.options.area[2]; if (p[1] < this.options....
2005 Dec 03
0
dragdrop patch that enables dragging from and to divs with overflow:scroll
...element); < < this.originalLeft = pos[0]; < this.originalTop = pos[1]; < this.originalZ=1000; < document.body.appendChild(this.element); < < var pointer = [Event.pointerX(event), Event.pointerY(event)]; < < this.offsetX = (pointer[0] - pos[0]); < this.offsetY = (pointer[1] - pos[1]); < < this.element.style.left=pos[0]+"px"; < this.element.style.top=pos[1]+"px"; < < } ______________________________________________________________________ X...
2005 Aug 10
2
extend question
Is it possible to call the super class''s version of a function from a subclass? SuperClass = Class.create(); SuperClass.prototype = { initialize: function(){ this.varA = ''''; this.varB = ''''; } } SubClass = Class.create(); SubClass.prototype = (new SuperClass()).extend({ initialize: function(somevar) { this.somevar = somevar; }
2007 Nov 06
2
[LLVMdev] Dynamic (JIT) type resolution
...= call float @obj.y(i8* %obj); > %sum = add float %x, %y > ret float %sum > } > > After the first execution of xPlusY, the new native code (changed to LLVM, and imagine there are also some nops to remove the previsous accessors calls) of xPlusY would be: %x = offsetx(%obj) %y = offsety(%obj) %sum = add float %x, %y ret float %sum Thanks, Nicolas > In either case, an optimization pass could trivially zero out the > overhead with no need to modify LLVM. > > On 2007-11-05, at 23:27, Nicolas Geoffray wrote: > > >> Hi evaeryone, >&...
2005 Aug 15
6
setting position for draggables?
Hi list, how can I set the top and left CSS properties for draggable divs? When I modify the properties directly, the DIV jumps to its old position when I start to drag it. Thanks in advance! Martin _________________________________________________________________________ Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle Freunde gleichzeitig schicken:
2007 Nov 06
0
[LLVMdev] Dynamic (JIT) type resolution
Nicholas, I guess you're trying to solve the fragile base-class problem by deferring field offset calculations until JIT compilation time? Perhaps I'm missing something, but can't you accomplish this by using external constants in the source program, to be supplied at JIT/link time? external constant i32 @obj.x.offs; external constant i32 @obj.y.offs; define
2007 Nov 06
4
[LLVMdev] Dynamic (JIT) type resolution
Hi everyone, I would like to implement an equivalent mechanism of function callbacks in the JIT, but for fields. Typically in Java, when you compile a method, there may be some instructions (getfield, putfield) that depend on a type which is not yet resolved. I think the best way to do this in LLVM is to add an intrinsic. The intrinsic would be only valid if we jit, and would be lowered only in
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"