Hi,

I hope that this is right newsgroup.

I do an extension for Thunderbird. I dynamically create style sheet for 
my toolbar. And I load and register it by nsIStyleSheetService. I did it 
by this an article: 
http://developer.mozilla.org/en/docs/Using_the_Stylesheet_Service

Problem is that the style isn’t applied immediately. When I open any 
folder in new window style in new window is applied correctly.

In an article is written that “changes won't apply until reload“. But I 
don’t know how to invoke reload. Which object implement this method? Or 
how to achieve that style will be applied?

My next question:
I want to avoid scenario when I dynamically create css file and then I 
load it by nsIStyleSheetService.
Does it exist any article or example how to create style dynamically by 
javascript or c++ and register it?

Any suggestion is welcome.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to