We've been seeing a problem in IE7 where after we do a fit window and then try to return to normal size, the editor doesn't resize... just moves to the correct place and blocks out pretty much everything to the bottom/right. I think it has something to do with the fact that we're putting it in a position: fixed dialog box (which itself has some special CSS to handle IE).
Investigation of the problem was intersting though. What fck does, is it backs up both the className and inline style attribute of the editor's iframe (elem.style.cssText), then sets those attributes back.
I watched the cssText through the whole process and it went something like this...
before maximizing: cssText == "width: 300px; height: 300px; border: 1px solid black;"
after maximizing: cssText == "width: 1024px; height: 768px;" // Note the border went away.
after restoring: cssText == "widht: 1024px; height: 768px; border: 1px solid black;" // note the border is back, but the width and height haven't changed.
Evidently IE is trying to be "helpful" and merging the two values, rather than actually overwriting them?
As a workaround, I made a plugin called NoReallyFitWindow that overrides FitWindow and explicitly sets the width and height attributes. You might want to use it if you're having the same problem.
Investigation of the problem was intersting though. What fck does, is it backs up both the className and inline style attribute of the editor's iframe (elem.style.cssText), then sets those attributes back.
I watched the cssText through the whole process and it went something like this...
before maximizing: cssText == "width: 300px; height: 300px; border: 1px solid black;"
after maximizing: cssText == "width: 1024px; height: 768px;" // Note the border went away.
after restoring: cssText == "widht: 1024px; height: 768px; border: 1px solid black;" // note the border is back, but the width and height haven't changed.
Evidently IE is trying to be "helpful" and merging the two values, rather than actually overwriting them?
As a workaround, I made a plugin called NoReallyFitWindow that overrides FitWindow and explicitly sets the width and height attributes. You might want to use it if you're having the same problem.
Re: FitWindow doesn't resize in IE7
wouldn't it better to file a ticket and propose a patch to fix the problem in the core instead of using a plugin?
Re: FitWindow doesn't resize in IE7
Evidently the "Upload attachment" button on the forum doesn't work? Here's a link: http://filebox.vt.edu/users/mruhlin/fckplugin.js
I did the plugin because I'm on tight time constraints and didn't want to go hacking fckeditor code. Quickest solution.
I generally don't like getting bugs that say things like "doesn't work", so I wanted to hold off creating one until I could get more specifics as to reproduction. The page it's on right now is gigantic and I wouldn't want to wish that code on anybody else.