This is a migrated thread and some comments may be shown as answers.

Editor grows when switching mode

2 Answers 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Niklas Lindwall
Top achievements
Rank 1
Niklas Lindwall asked on 07 May 2008, 09:31 AM
Hi,

Just found a quit weird behaviour.
In our editor every time you switch mode between edit and html mode the height grows with x pixels depending on what modules is activated.

This behaviour is FF only.

Your demo dosen't have this "feature".

My conclusion after some digging is that this is related to the disabling of tools.

Try this:

Disable the MainToolbar in ToolsFile.xml -> 
 <tools name="MainToolbar" isribbon="false" dockable="true" enabled="false"> 

Now switch mode to html and back again.
The editor grows in FF!

A workaround is to disable every tool in the "bar" and not the tools, but that shouldn't be necessary.

Regards
Niklas

2 Answers, 1 is accepted

Sort by
0
Mark Davis
Top achievements
Rank 1
answered on 07 May 2008, 06:27 PM
I saw this behavior introduced in March/April. For us, the editor grew every time the user typed a character (several times if they clicked the editor) so we assume it an event handler issue. For FF, we set AutoResizeHeight to false to workaround this. I'd like to know if there is a fix so we can provide this feature to our FF users.
0
genesplitter
Top achievements
Rank 2
answered on 08 May 2008, 07:10 PM
I noticed the same behavior in Firefox. I assumed I was using AutoResizeHeight incorrectly in my code but I just tested in IE7 and the property works correctly, so maybe this is a FF only issue.

I changed my code to detect FF. Hopefully FF will work in the next release.
Tags
Editor
Asked by
Niklas Lindwall
Top achievements
Rank 1
Answers by
Mark Davis
Top achievements
Rank 1
genesplitter
Top achievements
Rank 2
Share this question
or