Any XUL part of the chrome is not nearly as flexible as it is in the content
area. That includes not allowing HTML elements, or positional CSS. At first
I resented it, but now I know it is for the better :-)
What I would try doing if I were you would be to have a xul box, at the
bottom with a height of 0. Then you can use the DOM to change the height of
the box, even animation-like. Use CSS to control the overflow aspects of the
box too (like disable scrolling).
You should be able to get the effect you want, unless you want to do
overlapping of other elements. If that is the case, you will have to do
something with bulletinboard. Maybe have virtually the whole screen be one?
Later,
Eric
"Eric Plaster" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
This will work fine in a content area, but how do I do this in a XUL window?
If I use style attributes on a <html:div> it seems to ignore it. For
example:
<html:div id="bob">
... stuff
</html:div>
#bob
{
position: absolute;
top: 100px;
}
Does nothing.
I also tried putting everything inside of a box with a spring on top. Then in js, I
set the style on the spring for "height", but it doesn't seem to take affect either...
Do I have to tell the window to reflow or something?
Steve Clark wrote:
pretty much anything you could have done using layers, you can do using
CSS positioning. Take a look at the CSS spec. Some of our samples off
the viewer samples menu use positioning, if you'd like to look at some
examples. One of them is animated.
Eric Plaster wrote:
>
> I have a requirement on a project that I am working on. They want a
> box of buttons to slide up from the bottom of the window under certain
> circumstances. In html, I would uses a layers with absolute/relative
> positions to "animate" the box up. How ever, we don't have layers.
> So, is there a way to do this in xul?
>
> --
> ----
> Eric Plaster
Universal Talkware Corp
> Senior Software Engineer (612)843-6711
> [EMAIL PROTECTED] http://www.talkware.net
>
--
----
Eric Plaster Universal Talkware Corp
Senior Software Engineer (612)843-6711
[EMAIL PROTECTED] http://www.talkware.net