Use prototype style for css : function ajuster_taille() { $(this).setStyle({height: this.scrollHeight + 'px'}) }
2010/1/16 Jinsa <jf.wesq...@gmail.com> > Hey, I just fixed it with this: > > function ajuster_taille() > { > this.style.height = 0; > this.style.height = this.scrollHeight + 'px'; > } > > > Hope it will help someone having the same trouble ;) > > > Bye :) > > > On Jan 14, 1:09 pm, Jinsa <jf.wesq...@gmail.com> wrote: > > Hi all! > > > > I've done a simple prototype script to expend the textarea size of a > > form. It works perfectly with IE / Firefox but it's doing a strange > > stuff with Google Chrome. > > > > Just take a look:http://www.jinsa.fr/coms/test.php > > > > My function doing the resize is named ajuster_taille, here we go: > > > > function ajuster_taille() > > { > > this.style.height = this.scrollHeight + 'px'; > > > > } > > > > And I just binded it to an observer with "keyup" parameter: > > > > function bindTestElements() > > { > > > > $('msg').observe('keyup', ajuster_taille); > > > > } > > > > Event.observe(window, 'load', bindTestElements); > > > > So, do you think it's a problem we may advert prototype core team or > > may be just a Google Chrome misunderstanding? I'm trying to find a tip > > to patch that bug so if you have one just let me know :) > > > > Thanks! > > -- > 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 > prototype-scriptaculous+unsubscr...@googlegroups.com<prototype-scriptaculous%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > > > -- Best Regards, Vladimir Tkach +972-54-7574166 tea...@gmail.com http://teamco-anthill.blogspot.com/ http://www.google.com/search?q=teamco-anthill&pov=113485037116411478549&usg=__MJmWqpqtgaTxQA8ZMBvE3etiB1Q=--
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 prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.