Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

GMailSidePaneWidth

Make the side pane a bit wider to compensate for new crap

For the new GMail (requires access to the API they added). When they added the buttons to the labels to add colors, they were cutting off my label names a tad. This script just tweaks the width to account for that. If you want it more or less wide, just change the SIDE_WIDTH const in the beginning, but I haven't tested crazy values, so use some caution.




Apr 1, 2008
David Jacobitz Script's author

It looks like resize *does* fire on that tab-switch event, but there was a race condition with some of gmail's code. Made the processing for resize delay, and now it works.

Probably.


 
Apr 1, 2008
David Jacobitz Script's author

Nope. Though I think I can now reproduce the behavior, which is a step ahead of where I was before. My current theory is that this happens when gmail reloads while it is not the active tab. Then when you switch back to that tab, bang - the view pane resizes and drops down. The problem is that I'm not sure I can get events to fire on that. Checking now.


 
Mar 24, 2008
David Jacobitz Script's author

*sigh* When I logged in this morning, the dropping-down problem happened again. So apparently the google-products ad element was not the culprit. The error console messages suggest it was actually the fact that it was missing some resize events - it looks like a resize event fires while there is no gmonkey object. So I've said screw it and added equivalent functions to deal if there is no gmonkey (and therefore no gmail extension) object.

It is working, but I'm reluctant to update the source until I'm sure the dropping-down thing is fixed this time. I'll give it a couple days.


 
Mar 21, 2008
David Jacobitz Script's author

Apparently, in getting its shit together, gmail reloads the window approximately 74 billion times, but only once with the gmonkey object...in the middle of other loads. Moved the resize listener outside the check for gmonkey, and all is apparently good with the world.


 
Mar 20, 2008
David Jacobitz Script's author

As for the chat box issue, it seems to load by itself after the main page load, and re-updates its width. Added a setTimeout kludge to make our changes stick after it's loaded.


 
Mar 20, 2008
David Jacobitz Script's author

Ok, I think I found the "dropping down" problem - the little internal ads line below the main pane that auto-updates with things like "use Google product <bla>, because it's teh awesome" - occasionally something would pop in there that's long enough to try to resize the pane, making it too large. Unfortunately, something changed in gmail and now the resize event on the window no longer fires. So I added a line to just snip out the internal ad div.

Does anyone know if there's any way to capture window resize events in gmail now?</bla>


 
Feb 3, 2008
Kerim Friedman User

I think this script was broken by the recent Gmail upgrade from Google.


 
Feb 1, 2008
David Jacobitz Script's author

Kerim: On the main pane dropping down - I've noticed that too, not sure what's up yet, I'll let you know. Chat box should be easy enough, I'll get that updated shortly.

Deb: Not sure, I'll take a look.


 
Dec 15, 2007
Kerim Friedman User

Not sure why, but occasionally the main pain drops below the navigation menu (rather than to the right) when using this script. A refresh fixes this, but somehow it is happening more often lately...


 
Dec 15, 2007
Kerim Friedman User

Feature request: it would be nice if the chat box was the same width as the label box. Right now this script only seems to affect the latter.

Thanks!


 
Dec 14, 2007
Deb Morrissey Scriptwright

I tweaked the navbar width (much narrower - short labels, portrait monitor), but the right pane doesn't compensate. Any way to get rid of the gap between?


You could comment on this script if you were logged in.