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?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | dhtml_menu2.patch | 1.46 KB | keithorama |
| #1 | dhtml_menu.patch | 1.49 KB | svetlin |
Comments
Comment #1
svetlin commentedYes, 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.
Comment #2
andrewfn commentedI'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.
Comment #3
htxt commentedSame here, subscribing...
Comment #4
pinxi commentedSame Issue - Subscribing
Comment #5
keithorama commentedSame here - only that patch missed a 'display: block' rule. Attached a patch that fixes that as well.
Comment #6
brmassa commentedGuys,
its fixed. soon on the next release
regards,
massa
Comment #7
(not verified) commented