When I patch this, then I can get the slider component to display when it's
rotated 90 degrees. However, the dragger
is still controlled by the x motion of the mouse.

To get a vertical slider, I'm not sure whether I should try to
conditionalize all the slider rendering code to look at an "axis"
attribute, or whether I should have it look at the parent's rotation and
maybe I can just conditionalize some of the dragger code.



On Mon, Feb 14, 2011 at 9:09 PM, Henry Minsky <[email protected]>wrote:

> In the LzSprite.js code, there's an error happening where 'stylename' is
> not bound.
>
> What's it supposed to be set to here?
>
> I see elsewhere in the code
>            var stylename = LzSprite.__styleNames.transform;
>
> Is that what is needed here?
>
>
>
>
> /**
>   * Copies relevant styles from one div to another, e.g. a container div
>   * @access private
>   */
> LzSprite.prototype.__copystyles = function(from, to, copyclip) {
>     copyclip = copyclip == null ? true : copyclip;
>     var sprite = from.owner;
>     var left = sprite._x;
>     if (left) {
>         to.style.left = left;
>     }
>     var top = sprite._y;
>     if (top) {
>         to.style.top = top;
>     }
>     var display = sprite.__csscache.__LZdivdisplay || '';
>     if (display) {
>         to.style.display = display;
>     }
>     to.style.zIndex = sprite._z || from.style.zIndex;
>     if (copyclip && sprite._clip) {
>         to.style.clip = sprite._clip;
>     }
>     if (sprite._transform) {
>         // copy transform
>         to.style[stylename] = sprite._transform;
>     }
> }
>
> --
> Henry Minsky
> Software Architect
> [email protected]
>
>
>


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to