_______________________________________________
dev-extensions mailing list
dev-ext...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-extensions
On 9/26/06, eric...@yahoo.com <eric...@yahoo.com> wrote:
>
> Why not apply those styles (position:absolute and z-index:100000) to the
> <image/> element?
>
>
> ----- Original Message ----
> From: conlan <conl...@gmail.com>
> To: dev-ext...@lists.mozilla.org
> Sent: Monday, September 25, 2006 9:40:57 PM
> Subject: XUL Image
>
> Is it possible to place an image in the window that can be moved to
> anywhere in the window, and always remain on top of everything else?
> (similiar to using position:absolute and z-index:100000 in HTML)
>
>conlan wrote:
>
>>Is it possible to place an image in the window that can be moved to anywhere in the window, and always remain on top of everything else? (similiar to using position:absolute and z-index:100000 in HTML)
>
>Why not apply those styles (position:absolute and z-index:100000) to the <image/> element?
>
>
Because it won't work in XUL.
To answer the original question, you can almost do this with a stack:
<window ...>
<stack flex="1">
<image top="40" left="80"/>
<vbox>
<!-- other content here -->
</vbox>
</stack>
</window>
The only restriction is that your image can't overlap the right or
bottom of the window. There are workarounds to this restriction by
messing around with overflow or negative margins but I forgot offhand
how to do that.
--
Warning: May contain traces of nuts.