Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-05-25 08:20:20

mso
New member
Registered: 2005-05-24
Posts: 3

Resize Xinha together with window?

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 smile). 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

#2 2005-05-25 10:16:22

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Resize Xinha together with window?

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

#3 2005-05-26 06:25:57

mso
New member
Registered: 2005-05-24
Posts: 3

Re: Resize Xinha together with window?

Thanks so far. Where do I get this "myEditor" variable from?

Offline

#4 2005-05-26 06:33:15

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Resize Xinha together with window?

myEditor is just the editor reference you have obtained.

If you follow the newbie guide it would be something like

  xinha_editors.myEditor


James Sleeman

Offline

#5 2005-05-26 06:51:45

mso
New member
Registered: 2005-05-24
Posts: 3

Re: Resize Xinha together with window?

Thanks, gogo! Keep up the excellent work!

Offline

Board footer

Powered by FluxBB