Gmail Fixed Navigation

By maloninc Last update Sep 13, 2007 — Installed 1,555 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1

Archived Comments (locked)

Subscribe to Archived Comments 27 posts, 9 voices

Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
maloninc Script's Author

Hi, Patacho3
Thank you for reporting new style of foot arrow.
I'll fix it soon.

 
Patacho3 Scriptwright

Hi Maloninc,
The arrow in the foot of the Gmail is very bad... In the part of new styles change:

border: 12px none transparent;

for...

border: 7px none transparent;

That was my contribution...

 
Patacho3 Scriptwright

In "Compose Mail", the GMail logo moves down (equal that all the page). Very soon I report more bugs... And .. You cannot get the arrow disappear?

// sorry for my english, is very bad //

 
allenkeynyc User

actually, this script seems real buggy.
i have issues with scrolling.
and inconsistent fixed areas depending what i'm viewing in gmail, a conversation, or list of mails in the inbox, or all mail, etc.

and that black arrow that tells you which email you were just looking at, that's been screwy with this script too

 
allenkeynyc User

i 2nd that last request, actually i was just coming here to make that request myself

 
tcustomgolf User

maloninc, love the new version enhancements, but

1) I noticed if I am in a folder with a small number of emails I get a lot of white space below the listing, so I cannot see my google reader or footer unless I scroll down. Can that be changed?

2) Can the bottom arrow be defaulted to show the footer. Right now it is defaulting as closed. Is there a setting I can change in the script?

 
allenkeynyc User

(previous request for when reading an actual email)

i noticed it's already fixed for inbox and other mail list views.

 
allenkeynyc User

hey, what about fixing everything from the subject up, to include the subject, and actions, search mail field, etc?

 
maloninc Script's Author

Hi RivetingOne, probably I misunderstood what you called "header".
Could you tell me which it is the following?

HEADER1


http://www.maloninc.com/archive/header1.png

HEADER2


http://www.maloninc.com/archive/header2.png

 
RivetingOne User

I don't see any difference in the version 0.9.7 BETA
2007/09/13. The header in the email view is still not fixed.

 
maloninc Script's Author

It makes your firefox slow as you use it long time.
Because it call settimeout function unnecessarily.
So I fixed this bug now.

 
maloninc Script's Author

hmm, I guess I fixed also when viewing the contents of an email like my third screen shot.
Was'nt it your change request?

 
RivetingOne User

maloninc, Great job, you fixed it for the Inbox view, but the same change should also be made when viewing the contents of an email.

 
maloninc Script's Author

Fixed again, I forgot one of RivetingOne's change request.

It also leaves navigation menu above email text viewer now.

 
maloninc Script's Author

Hi, creyle. Thanks again for reporting the bug.
I fixed it just now.

 
creyle User

hmm, there's a bug in fixArrow(), in the line arrow.style.top = "140px".

The problem is when turning page in the k-direction, then the bug "works", the arrow should be in the last line, not the first line, the fix:

arrow.style.top = (parseInt(arrow.style.top) - 13) + "px";

In fixCompose(), it's better to have:
foot.parentNode.style.paddingLeft = "21ex";
and to remove the unused var cont. (my fault:P)

And, menu.height = body.clientHeight - 84 is perfect.

 
Kyosama User

Good job!

 
Dink Scriptwright

This one's pretty sweet!! Thanks!!

 
maloninc Script's Author

Hi RivetingOne!

I improved again. I hope it will work for your request.

If you don't like it, click the following link to install the previous version.
http://www.maloninc.com/archive/gmail-fixed-nav...

 
maloninc Script's Author

Hi creyle, thank you for giving another improving.
I applied it now.

Hi RivetingOne, thank you for your nice suggestion.
I'll try it.

Thanx guys again!

 
creyle User

Hi maloninc, yes I forgot to relocate the compose component, your work rocks!

Again, nothing could stop improving, here's more:

1. scrollbar changed with overflow-x:hidden and overflow-y:auto
2. the footer also pushed to the right to align with cm_compose
3. now nav.z-index=1 to not covered by the logo

cheers, also for the overwhelmingly powerful firebug :P


function fixLogo() {
var ds = document.getElementById('ds_inbox');
if (ds != null){
ds.style.position = "fixed";
ds.style.paddingTop = 0;
} else {
setTimeout(fixLogo, 500);
}
}

function fixMenu() {
var cont = document.getElementById('co');
var menu = document.getElementById('nav');
if (cont != null && menu != null){
cont.style.marginLeft = "20ex";
menu.style.overflowX = "hidden";
menu.style.overflowY = "auto";
menu.style.position = "fixed";
menu.style.height = document.body.clientHeight - 59;
menu.style.width = "20ex";
menu.style.zIndex = 1;
} else {
setTimeout(fixMenu, 500);
}
}

function fixArrow() {
var arrow = document.getElementById('ar');
var foot = document.getElementById('ft');
if (arrow != null && foot != null) {
arrow.style.left = "200px";
arrow.style.top = "140px";
foot.parentNode.style.paddingLeft = "20ex";
} else {
setTimeout(fixArrow, 500);
}
}

function fixCompose() {
var cmps = document.getElementById('cm_compose');
var cont = document.getElementById('co');
var foot = document.getElementById('ft');
if (cmps != null && cont != null && foot != null) {
cmps.style.paddingLeft = "31px";
foot.parentNode.style.paddingLeft = "20ex";
} else {
setTimeout(fixCompose, 500);
}
}

fixLogo();
fixMenu();
fixArrow();
fixCompose();

 
RivetingOne User

It works as perfectly for me. Yahoo mail, along with almost every other 3 panel GUI has works this way, where the top and left navigation panels stay fixed when the body panel is scrolled.

Change request: Also leave the navigation menu ABOVE the email selections fixed. This way I can always see the buttons for 'Select All, None, etc' 'Archive, and 'Delete', even after scrolling down in the email list or when viewing the email text itself.

 
maloninc Script's Author

Update again.
Move right the compose area to 30px.
It only works when you click "Compose Mail".

 
maloninc Script's Author

Thank you, creyle.
I immediately applied your changes.
It works well. ;-)
Thanks again!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel