2 ms·
Awesome, i really didnt go through your code much, but i was trying myself to make this technique happen using simple old javascript. Things that were bothering
by sktrdie 18y ago
Awesome, i really didnt go through your code much, but i was trying myself to make this technique happen using simple old javascript. Things that were bothering me were for example the fact of passing the div element around, i think you have the CGRectMake() function that returns that div element, interesting though is that you dont add any of your methods/property to that div dom element. Another interesting thing is that you're able to figure out the size of elements before they are written to the client (browser), do you write it 2 times, one to get size and another to actually display it?
- tolmasky 18y agoCGRectMake does not make a div, it makes a rectangle that defines the location and size of views ( see http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html http://developer.apple.com/documentation/GraphicsImaging/Ref... )
- sktrdie 18y agoWhat is a rectangle on the web? Isnt it a div?
- tlrobinson 18y agoHe means an abstract "rectangle"... just the dimensions and coordinates. In JSON: { origin: { x: a, y: b }, size: { width: c, height: d } }