I installed Google Translate and added the block to my page. I am also use the Administration Menu Module for the black bar at the top. When the block in installed the admin menu jumps down to cover my top tabs after the page is loaded. When the page is loading it looks fine then it makes a jump. When I disable the block it goes back to normal. This is a great module and would like to use it. Any thoughts or solutions?

Comments

startd’s picture

Category: support » bug
nairb’s picture

admin_menu.css adds 20px to the top margin of the body:
body.admin-menu {
margin-top: 20px !important;
}

The Google Translate JavaScript throws inline css into the body tag: "position: relative; min-height: 100%; top: 40px;"

By adding the relative positioning to the body, the top margin bumps the admin menu over the content. I have found that as long as the Google Translate js is being loaded, whether the page is being translated or not, the body position is set to relative.

Add this to your page css to adjust the admin menu's positioning:
#admin-menu {
margin-top: -20px;
}

You may also want to add "position: relative" to your body declaration so the menu appears correct before the translate js is loaded too.

Brian

apaderno’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, as Drupal 6 is now not supported.