If you compose in Blogger at all, you may be frustrated with the relatively small size of the text area provided for writing. It defaults to only about 15 lines!
Here's a fix.
I started out by using Firebug's Inspect feature to find what I wanted to resize, and to initially tweak the size on-demand. However, this is a bit tedious, and requires further tweaking if the window is resized.
Here is the human-friendly source code:
This is cross-browser compatible, and was tested against Mozilla Firefox 3 and Microsoft Internet Explorer 7. Not surprisingly, it could be much shorter if it didn't need to work-around a few IE bugs, as commented above:
- Supporting a non-standards event registration model.
- Difficulties in obtaining the size of the browser window, including differences between "strict" and "quirks" modes.
- The resize event being called repeatedly, which usually resulted in infinite loops and hanging IE.
Here's the same code, condensed as a usable bookmarklet:
(Bookmarklet - Either right-click and choose to bookmark, or drag to your bookmarks menu or links toolbar.)
This script could easily be modified for similar functionality on other sites. Additionally, the need to initially enable the resizing by manually activating the bookmarklet could be avoided by converting this to a Greasemonkey script.
As discussed in the comments below, I'm avoiding Blogger's "updated editor" for now, due to many other unresolved issues with that editor itself. My scripts are only designed to work with the "old editor". Some details about the different editors are available from Google's Blogger Help.