Ever since I launched this site and started working with WordPress, I’ve been plagued with unmanageable ugly pop-up windows that come up when I try to insert pictures and/or view the raw HTML of a post using the TinyMCE (Rich Text) Editor. Almost invariably the window that would pop-up would be resized to really odd dimensions on their own causing most of the text input fields to be placed out of sight.
As a result, I’d to type the location of the images almost blindly. Really frustrating if you know what I mean.
Here’s a snapshot…
You can figure how difficult it was to fill up the required data for the image. Worst part was these pop-up windows were devoid of any sort of resizing grip/control and hence you couldn’t even drag it and resize it to a desirable dimension.
Second problem I faced was that certain sites I visited would either pop-up similar windows or suddenly caused the Firefox window to resize itself to ridiculous dimensions like 50 x 50 pixels just to display some useless ad. A major nuisance, if you ask me.
Thus, I got down to figuring out a way to stop this. Now, with whatever limited knowledge of JavaScript I have, I knew for sure this was being done with some JS code. It didn’t take me long to find the solution. Browsing around the Firefox support forums helped a lot.
Solution:
It’s quite simple actually. You’ve to follow this route from the top menu:
Tools > Options > Content tab > Click “Advanced” button beside “Enable JavaScript” checkbox.
The first option in the resultant window is “Move or resize existing windows“. Simply uncheck that and click OK and you’re done.
This prevents JavaScripts embedded in any page from being able to resize your window.
While this sounds like a trick to fix the window auto-resizing owing to badly behaved pages, this works wonders for the first case I mentioned here i.e. for the pop-ups of TinyMCE Editor.
Once this option this option was turned off, the result looked like this…
Loud and clear, eh ?
There’s another way of achieving the same effect though somewhat tricky for the beginners. Open a new tab in Firefox and in the Address bar, type about:config and press Enter.
This will bring up a whole bunch of Firefox configuration options. In the search Filter, type resize. This will bring up an option called dom.disable_window_move_resize. Double-click on it to change its value to true. That should do the trick.


hey dude, merry christmas to you too (don’t know if you celebrate it though =) . nice site btw, very professional looking! (and of course bonus points should be awarded for having it render perfectly on Firefox 2.0