You are not logged in.
Hi,
I am quite new to Xinha and really excited about its strength. I intend to use it as a replacement for the mailbody textarea in the compose mail window of a webmail application. This compose window is already fully aware of window resizes by the user by attaching an onresize event handler which adjusts the width and height of the various page elements accordingly. After including Xinha in this window, resizes don't affect Xinha (of course ). Is there a way to call a function of Xinha to automatically adjust itself (or to give it parameters to which size to stretch)? I would really appreciate a black box behaviour to avoid hacking directly into the DOM structure Xinha creates since this would probably break on changes in this DOM structure.
Regards
Matthias
Offline
Xinha should resize on-the-fly no problem if you are using relative sizes. Eg if your textarea is style="width:100%;height:100%" it should work.
You can however call the sizeEditor() method on the editor explicitly if you wish
myEditor.sizeEditor(width, height)
James Sleeman
Offline
Thanks so far. Where do I get this "myEditor" variable from?
Offline
Thanks, gogo! Keep up the excellent work!
Offline