Prevent ugly auto-resizing of Firefox browser windows

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. Forced ugly browser window resizingAs 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:Turn off Window Resizing in Firefox 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… After window resizing was turned offLoud 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.

Comments
  • Adam says:

    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 😉

  • Adam says:

    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 😉

  • Hey Adaammm 🙂 Thanks for dropping by dude !! And Merry Christmas to you again.. how’s life at the Psy Front?

  • Hey Adaammm 🙂 Thanks for dropping by dude !! And Merry Christmas to you again.. how’s life at the Psy Front?

  • John says:

    This was a nice post. It solved my problems exactly. Now if we can just get web developers to remember a) not everyone uses IE6 and b) in tabbed browsers resizing your “windows” is a total PITA!

  • John says:

    This was a nice post. It solved my problems exactly. Now if we can just get web developers to remember a) not everyone uses IE6 and b) in tabbed browsers resizing your “windows” is a total PITA!

  • Hey thanks John, I know exactly what you mean. Except for a few rare cases those resized windows aren’t even necessary & pop-up windows in tabbed browsers are simply pathetic .. 😡

  • Hey thanks John, I know exactly what you mean. Except for a few rare cases those resized windows aren’t even necessary & pop-up windows in tabbed browsers are simply pathetic .. 😡

  • Shoy says:

    Increeeedibly useful.

    I’m so tired of it doing that, and now I don’t have to worry. Thank you!

  • Shoy says:

    Increeeedibly useful.

    I’m so tired of it doing that, and now I don’t have to worry. Thank you!

  • Shoy: Glad that it helped you. If you want to get rid of the pop-up mode altogether, you should try using the Tab Mix Plus extension for Firefox. With that you can divert all pop-ups to a new tab.

    Even with this option turned-off, some of the sites manage to make Firefox render chopped off windows like I’ve shown in the snap-shot above. How I hate that. Moreover, I find those pop-up windows really annoying specially since they add one more item in the taskbar. How convenient would it be, if a pop-up utilised the best in-built feature of Firefox, i.e. Tabbed Browsing. Well, Tab Mix Plus does exactly that for you.. Now all my pop-ups open in tabs.

  • Shoy: Glad that it helped you. If you want to get rid of the pop-up mode altogether, you should try using the Tab Mix Plus extension for Firefox. With that you can divert all pop-ups to a new tab.

    Even with this option turned-off, some of the sites manage to make Firefox render chopped off windows like I’ve shown in the snap-shot above. How I hate that. Moreover, I find those pop-up windows really annoying specially since they add one more item in the taskbar. How convenient would it be, if a pop-up utilised the best in-built feature of Firefox, i.e. Tabbed Browsing. Well, Tab Mix Plus does exactly that for you.. Now all my pop-ups open in tabs.

  • I have been visiting this site a lot lately, so i thought it is a good idea to show my appreciation with a comment.

    Thanks,
    Jim Mirkalami

    PS: I am a single dad. 😉

  • I have been visiting this site a lot lately, so i thought it is a good idea to show my appreciation with a comment.

    Thanks,
    Jim Mirkalami

    PS: I am a single dad. 😉

  • Carlos Sampaio says:

    Thank you. Thank you very much.

    Those resizing pages “were” extremely annoying.

    -Carlos

  • Carlos Sampaio says:

    Thank you. Thank you very much.

    Those resizing pages “were” extremely annoying.

    -Carlos

  • DJ says:

    Thanks a ton for the post. This alleviates a ton of aggravation for me.

    -DJ

  • DJ says:

    Thanks a ton for the post. This alleviates a ton of aggravation for me.

    -DJ

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.