Hi, when simplemenu is used with the Touch theme, the upper bar doesn't start at the left side of the screen but aligned with the body.

I don't really know if this is a theme bug or a simplemenu bug.

Screenshot attached.

CommentFileSizeAuthor
bugtest.png69.19 KBmariogalan

Comments

AlexisWilke’s picture

That would be a theme problem... they probably use the body to center the content.

body {
  width: 1000px;
  margin: 0 auto;
}

This would force the margin on the simplemenu. Not much you can do except change the theme to do that in the first <div> instead.

crobinson’s picture

Assigned: Unassigned » crobinson
Status: Active » Fixed

I tested this with the latest version of the Touch theme, and confirmed that they are applying a width/margin to the body DOM element. There is no way to put SimpleMenu any higher in the DOM. This is a Touch theme issue and would affect any module like SimpleMenu.

It doesn't affect Toolbar because that facility uses position: fixed. It's for admin use only, so this is acceptable for that instance. SimpleMenu has a Position: Fixed option in its settings. I made a trivial change (7e51943) to improve how it behaves for themes like this.

If you only want SimpleMenu for an admin menu, please try that setting with the latest version of SimpleMenu 7.x-1.x-dev. If you want to use it in your site theme, you'll need to file an issue with the Touch theme developers and ask them to apply their centering/width settings on #wrapper, not body.

mariogalan’s picture

Hi crobinson, I asked the Touch theme developer for a solution and he said basically the same as you did.

Thanks for your help!

crobinson’s picture

Status: Fixed » Closed (works as designed)

Thanks for the update, mariogalan!