I'm running a fresh install of 5.1

The DHTML Javacript applies a style dynamically to all of my menu blocks, even the non-DHTML versions that is screwing up my layouts. Anyone ever have this problem?

Basically it is setting display:block, a few margins and a z-index. Is there a way I can tell it not to touch certain blocks?

CommentFileSizeAuthor
#5 dhtml_menu2.patch1.46 KBkeithorama
#1 dhtml_menu.patch1.49 KBsvetlin

Comments

svetlin’s picture

Status: Active » Needs review
StatusFileSize
new1.49 KB

Yes, I had the same problem until I find out that the styles are set by the dhtml_menu.js. It would be better if the .js sets only classes and the style (except for the display: block, display: none) is in an external dhtml_menu.css. So it could be changed or removed without touching the js file.
I'm attaching a patch (my first) that creates the css file and removes the styles from the js.

andrewfn’s picture

I'm having exactly the same problem with the CSS set by the javascript being non-overideable by .css files and so breaking my site. This patch is doing precisely the right kind of thing, although I haven't had a chance to actually run it yet.

htxt’s picture

Same here, subscribing...

pinxi’s picture

Same Issue - Subscribing

keithorama’s picture

StatusFileSize
new1.46 KB

Same here - only that patch missed a 'display: block' rule. Attached a patch that fixes that as well.

brmassa’s picture

Status: Needs review » Fixed

Guys,

its fixed. soon on the next release

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)