Setting styles can be done using setStyle();

var layout = $('myelement').getLayout();
$('myelement').setStyle({left: layout.get('left')+10});

Is this what you're looking for?

Greets,
 Johan

On Fri, Aug 13, 2010 at 12:48 PM, dinoD <[email protected]> wrote:

> I'm fooling around with Element.Layout and it seems to be read only.
> I cannot figure out how to move the position of an element.  If I do:
>
> layout = $('myelement').getLayout();
> layout['left] = layout.get('left') + 10;
>
> nothing happens.  Is Element.Layout indeed read only, or is there a
> way to set values?
>
> If not, how else besides using Element.Layout can I update the
> position of an element?
>
> Thanks for any help,
> Dino
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<prototype-scriptaculous%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to