...as per title. In case this might be a browser specific issue, I am seeing this in latest firefox 4.0 beta13 x64 nightlies under Win7 x64.
I'm using Chrome 12.0.742.30, and the admin_menu stays at the top of the window regardless of this option.
I'm not able to replicate this issue. Please make sure you also test whether this issue still exists when using the latest versions/development snapshots of affected modules. If that does not help, then also try to temporarily disable potentially conflicting modules that may interfere with this functionality.
In any case, please report back about the status of this issue. Thanks.
Same thing just happened with the latest dev build.
I have my localhost testing server running fine, but my live site with the same imported database and modules,
admin menu does not respect "top of page" option.
I tried to uninstall the module's data via drupal's backend, and re-active the module and set "top of page" option, but still scrolls.
I am also running fusion accelerator on both installs with the label and grid tabs shown which also scroll.
I will analyze the issue and possible fix.
Same here. Latest dev version. Tried switching themes just in case, but no change.
Found the problem.
The admin_menu_toolbar.css has the menu as fixed by default (line 28). The JS only sets the admin menu to fixed if the setting is set, there is no else statement. So either the css file needs to default to static or there needs to be an else statement in the js to $adminMenu.css('position', 'static'); (line 172 of admin_menu.js)
I hope that makes sense. I would assume the css file should be changed. (i.e. remove line 28 of admin_menu_toolbar.css).
I too am experiencing this issue. By it staying at the top, it is impossible to use the scroll ball to scroll down the menus when there are lots of modules installed.
I'm using admin_menu-7.x-3.x-dev, from 2012-03-09.
deanflory. Just comment out line 28 from admin_menu_toolbar/admin_menu_toolbar.css and it should be fixed.
deleted. double post.
Thanks andrewko, had already done so.
position: fixed; has moved to line 31 as of 7.x-3.x-dev version from 5/1/2012
Setting this back to Active since we have a solution that needs to be checked in.
To any maintainer, line 31 (position: fixed) in admin_menu_toolbar/admin_menu_toolbar.css should be deleted.
Related to this - after commenting out line 31, I started getting a black bar to the right of the page (caused horizontal scrolling). I only tested in Chrome, so not sure if it would happen in other browsers or not. After changing line 32 (margin) to 0, this went away; however the menu entries did move slightly (I can still live with it, but it's not perfect).
ah, this only pertains to admin_menu_toolbar.
I'm not exactly sure why this is hard-coded - perhaps there was a reason for doing so. Technically, position:fixed should still be applied via JS, so simply removing it from admin_menu_toolbar.css should still work.
Can anyone test?
Yes. Removing position: fixed works for me.
Removing position: fixed does work, but I noticed something else that seems to have broken at the same time as this... The margin-top: 20px !important; to adjust the margin no longer gets applied when using the overlay. Perhaps these issues are related.. something with the js perhaps?
margin-top: 20px !important;
Using the latest dev version, removing position: fixed fixes the issue. I don't get the issue mentioned in #15. However, this is not working when the Overlay module is enabled, in this case the toolbar stays at the top of the page irrespective of this setting.
Thanks for reporting, reviewing, and testing! Committed attached patch to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
This probably isn't even worth mentioning, but I just wasted an hour trying to debug this so here's the info for any other poor saps...
This update makes the toolbar incompatible with pages that have position:relative on the <body> tag with a top margin/border.
So if you find your admin toolbar is no longer positioned at the top after this update, it's probably because of this. Using position:relative on <body> is very odd css and has very limited usefulness, and in this case, it's just not compatible with the update.
The only use of that css is to prevent IE6/5 bugs on objects that are centering on the <body>. I don't do that (this is what div containers are for), so removing that one css line cured this. Inadequete css's fault, the update is fine.
Techie Nonsense on Why: This update removes position:fixed and makes position:absolute the default. Position:absolute items jump to the first position:relative parent (in this case, <body>), defaulting to the <html> element if none is found. My site was thrown together on a rush job using a framework, and the position:relative on <body> came with it. When the body got pushed down because of margin/border, so did the toolbar.
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.