Ok, I tracked down my problem, and I'm noting it here for reference;

It seems when setting the z-depth from within gwt, I have to use
"zIndex" rather then "z-index"
Absolutely no idea why this works, as z-index is the correct css as
far as I know, but I noticed this form in other bits of code too
(http://markmail.org/message/ajny4glg33vaiwsb,
http://code.google.com/p/google-web-toolkit/issues/detail?id=1279 )
and it seems to work.

So, in my code this didnt work;
DOM.setStyleAttribute(this.getElement(), "z-index", ""+(1000));
but this did;
DOM.setStyleAttribute(this.getElement(), "zIndex", ""+(1000));

Hope this helps anyone else googling and finding this thread ;)


2008/9/16 Thomas Wrobel <[EMAIL PROTECTED]>:
> This is odd, I just tried this at my end and it dosnt seem to work.
>
> Heres a screenshot of what I get:
> http://www.darkflame.co.uk/PopUpOrderingProblem.jpg
>
> Heres a 7zip of the whole test project:
> http://www.darkflame.co.uk/testproject.7z
>
> 2008/9/12 Thomas Broyer <[EMAIL PROTECTED]>:
>>
>>
>>
>> On 11 sep, 16:14, "Thomas Wrobel" <[EMAIL PROTECTED]> wrote:
>>> Ok,thanks, I upload an example zip of what I'm trying to do here;
>>>
>>> www.darkflame.co.uk/client.zip
>>
>> It would have been far better with the appropriate directory structure
>> and .gwt.xml (and even TestProject-shell.cmd...)
>>
>>> Basically, I want it if the user clicks on popup1, then popup2, popup1
>>> stays ontop.
>>
>> I've removed your "workaround", added a this.addStyleName("darkflame-
>> OverlayPopUp") in the OverlayPopUp constructor, and added the
>> following CSS rule in the TestProject.html:
>>
>>   .darkflame-OverlayPopUp { z-index: 1000; }
>>
>> ...and the draggable popup stays on top (tested both in hosted mode –
>> IE7– and an IE6 within a Virtual PC).
>>
>>
>>
>> >>
>>
>
>
>
> --
> ~~~~~~
> Reviews of anything, by anyone;
> www.rateoholic.co.uk
> Please try out my new site and give feedback :)
>



-- 
~~~~~~
Reviews of anything, by anyone;
www.rateoholic.co.uk
Please try out my new site and give feedback :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to