Discussion:
Disabling stylesheet does not update all menu items
HELBLING Andreas - TDHS
2010-04-19 08:44:37 UTC
Permalink
I would like to dynamically disable certain style sheets in the document.styleSheets collection of a XUL document.

I'm testing with Thunderbird 2.0.0.23 (20090812) and a XUL overlay to messenger.xul and in this overlay I want to disable some CSS style sheets.

So far IT WORKS and the UI is instantly updated EXCEPT that all the <menu> and <menuitem> elements (in the main menu bar) are not updated.
Well, the top-level <menu> elements which are always visible in the menu ARE updated, but all the sub-menus/menu items are not.

Any ideas?

Greez and Thanx
helb


Please consider the environment - do you really need to print this email?

This e-mail is confidential and intended solely for the use of the
individual to whom it is addressed. Any views or opinions presented
are solely those of the author and do not necessarily represent
those of Thales. If you are not the intended recipient, be advised
that you have received this e-mail in error and that any use,
dissemination, forwarding, printing or copying of this e-mail is
strictly prohibited. If you have received this e-mail in error
please notify Thales.

Loading...