Closed (outdated)
Project:
Toolbar
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Jun 2010 at 08:22 UTC
Updated:
1 Jul 2026 at 09:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lelizondo commentedI think the admin_menu adds a body class for when the admin_menu is present. We could use that to give it a margin-top to the toolbar.
Comment #2
jwilson3Add these two rules just after the body.toolbar rule in toolbar.css:
hope the maintainer would accept this as a valid "patch" ;) and merge it in.
Note: Admin_Menu has an option to fix the menu at the top of the screen, whereas Toolbar doesn't, so if you want them to work together, it behoves you to check the "Keep menu at top of page" option on admin/settings/admin_menu
EDIT: Added note ^
Comment #3
dankh commentedThanks both of you for the insights. As admin_menu is important module we have to make sure that Toolbar integrates well. I have made a patch based on your suggestions but I have a very important issue. When admin_menu is loaded from client side cache (injected in DOM via AJAX) I get 'null' height for admin_menu container.
This may be trivial, but I just can't understand why "div#admin-menu" has 'null' height if admin_menu is loaded from cache. The code is simple and works as expected only if I clear the cache (prevent admin_menu to load from cache).
EDIT : I have forgotten one alert for debugging ( alert('scroll') ), sorry for that, please delete it.
Comment #4
dankh commentedSecond patch to fix the missing units from css values. But the cache problem persists.
Comment #5
jwilson3could you explain why you want to do the height adjustment with javascript, instead of just the plain old css?
Comment #6
dankh commentedImagine the user applies some custom css to the admin_menu elements. In admin_menu-6.x-3.0 branch a toolbar style module is included which changes the css of admin_menu. We need to get dynamically the height in order to respect all the changes to height. If we use a static value we won't respect changes to height via css or other modules.
Comment #7
dankh commentedI'll set fixed values the time we resolve this the right way.
Comment #8
dydave commentedThanks everyone for the efforts and work on this issue! 🙏
More than 15 years of inactivity on this issue for the Drupal 6 version of the module which is not supported anymore.
Therefore, closing as Outdated, for now.
Feel free to let us know if you have any questions or concerns on any aspects of this issue or the project in general, we would surely be glad to help. 😊
Thanks in advance!