Element.Layout is really cool, more than getDimensions, I'm already
loving version 1.7

I'm trying to passing layout properties to Element.setStyle trough
toCSS method, as shown by documentation.

Unfortunately, the method returns no value to me, surely I'm wrong.


var lt = new Element.Layout('item');

console.log(lt.get('left')); // ok
console.log(lt.get('top')); // ok

console.log(lt.toCSS('left top')); // no return value

anyone have any idea?

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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to