On 10-Jul-06, at 8:02 AM, GHUM wrote: > Just asking the question in a mailinglist and some fiddling gives the > answer... > > setElementDimensions('p2x_menu',{"w":'auto',"h":'auto'}); does in fact > nothing. It only fails silently. > > Correct is: > updateNodeAttributes('p2x_menu',{"style":{"width":"auto", > "height":"auto"}}) > > which may be kind of disturbing. > > Would an "improvement" to setElementDimensions to accept "auto" be a > good idea?
These functions are going to get an overhaul soon. They should probably accept "auto". I've added a note in trac: http://trac.mochikit.com/ticket/84 Beau --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---