[Project_owners] XUL Persistant values

Neil neil at parkwaycc.co.uk
Tue Jan 3 17:08:49 EST 2006


Philip Chee wrote:

>On Mon, 2 Jan 2006 11:59:31 +0100, Ramiro Aparicio wrote:
>
>>I am working in the options dialog of my extension and I found that even now that I had removed persist="width height" from the dialog attributes I just loads the stored values resulting in a dialog window too big.
>>
>>I found that deleting the values from localstore.rdf works but the users of my extension will not do that, so there is any atribute/option/code to make firefox forget that values instead of loading them each time.
>>    
>>
>Use nsIRDFService to get the local-store datasource and then unassert the relevant triples.
>
>Or just use sizeToContent() in your dialog onload handler.
>  
>
After removing the attributes first, of course... see the end of the 
Startup() function in addBookmark.js


More information about the Project_owners mailing list