[mochikit] Re: Seven new functions for MochiKit.Visual

2008-06-12 Thread Per Cederberg
Ah, I forgot. MochiKit.Animator is not an official part of MochiKit (as the name suggests). You can find it here: http://gr.ayre.st/~grayrest/animator/animator.html MochiKit.Visual was adapted from Scriptaculous (mostly), but MochiKit.Animator is instead adapted from Bernard Sumption's animator.

[mochikit] Re: Seven new functions for MochiKit.Visual

2008-06-12 Thread Per Cederberg
MochiKit.Style.getElementDimensions is the preferred function, since the other two will probably be removed soon (they are not documented, and thus not part of the supported API). There are some issues with border and padding size in this function that is being discussed in another thread on the

[mochikit] Re: Seven new functions for MochiKit.Visual

2008-06-11 Thread Michael Bond
Your patch notes indicate not using getElementWidth and getElementHeight, what are the preferred? In a fit of trying to get horizontal scaling to happen at the same time as sliding a pair in the case where they were not the same size, I had already migrated some of the duplications to helper func

[mochikit] Re: Seven new functions for MochiKit.Visual

2008-06-11 Thread Per Cederberg
I've added the original patch to Trac #312: http://trac.mochikit.com/ticket/312 New functionality in MochiKit.Visual is low priority right now, so I moved it to version 1.5. I also think more generic helper functions are needed to make new functions like these most compact and readable. Perhaps

[mochikit] Re: Seven new functions for MochiKit.Visual

2008-06-10 Thread Michael Bond
Ok, had a couple visual glitches that are now fixed with the patch below: Index: Visual.js === --- Visual.js (revision 1383) +++ Visual.js (working copy) @@ -1431,14 +1431,16 @@ scaleContent: false, scaleX: fals