Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using Admin menu (without overlay) the task buttons are hidden by the Admin menu.
My workaround is adding this to screen.css:
.admin-menu #tasks {
top: 29px !important;
}
.admin-menu-with-shortcuts #tasks {
top: 65px !important;
}
.adminimal-menu.menu-render-newline #tasks {
top: 58px !important;
}
Comment | File | Size | Author |
---|---|---|---|
#5 | stanley-admin_menu-height-fix-2.patch | 615 bytes | basvanderheijden |
Comments
Comment #1
Wolfgang Reszel CreditAttribution: Wolfgang Reszel commentedWell, it's better to put the logic into the script.js so it's not dependent on the admin menu theme.
Comment #2
joelpittet@Wolfgang Reszel That seemed to do the trick though it only works well with "Adjust top margin" and " Keep menu at top of page"
Would it be better if it did this:
$('#admin-menu').length > 0
before using it the height?Thanks for the patch:)
Comment #2.0
joelpittetNeeds !important in some cases
Comment #3
autopoietic CreditAttribution: autopoietic commentedThere is a body class for admin-menu, can it not just go on that? It works alright for me anyway.
Love stanley for admin, its really solid.
Comment #4
joelpittetBecause position: fixed; doesn't care about position: relative context at all, it's kind of annoying. This causes issues with other toolbar replacements too like navbar or admin.
Maybe instead of dealing with it in JS or CSS you can deal with it with markup and a bit of CSS using an approach like this:
http://stackoverflow.com/a/11833892/80281
Then that position fixed will have a bit of a context of where it's supposed to be fixed to?
Not sure if it will solve all problems but may help.
Comment #5
basvanderheijden CreditAttribution: basvanderheijden commentedI applied the following patch to 2.0-alpha3 to mitigate the issue.