Re: sharing xul elements between toolbars

Neil <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
Nikhil Johny wrote:

>so do you mean that to create the new toolbar, i would need to do the following:
>
>1. create the toolbar using the <toolbar>.
>2. create the custom back and forward button and use the command and broadcaster technique to achieve the same functionality. then use css to style the new button as i wish.
>3. for the url bar i could just change the style directly to get the smaller width. then i can append the url bar to my new toolbar when i activate the fullscreen mode.
>4. also i wanted to bring the tabs toolbar to the same line as the back button and url bar. again i can use DOM for this.
>5. i can position my element as above using the DOM,right?(i am still working with the DOM so i am not quite sure if this would work. please mention if i am wrong.)
>  
>
I don't know for sure whether your suggestion would or would not work, 
but you might find you suffer from side effects of moving elements 
around in the DOM, such as the URL bar might forget its value.

-- 
Warning: May contain traces of nuts.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.