Re: DialogBox won't get CSS attribute box-shadow

364 views
Skip to first unread message

Jinker Jiang

unread,
Aug 15, 2012, 5:33:18 AM8/15/12
to google-we...@googlegroups.com
you should use the method PopupPanel. setAnimationEnabled(boolean enable), this use css style clip, 
and clip affect box-shadow

2012/8/9 Dominic Warzok <dom...@googlemail.com>
Hi everyone,

I have a DialogBox an want to add a box-shadow to it.

So at the end it should look like "endversion.png".

But when I write my DialogBox class and use the method "setStylePrimaryName()" or "setStyleName()" the given String would be applied to the DialogBox.

CSS attributes like "border-radius" or "background-color" are shown in FireBug but the attribute "box-shadow" is missing.

Any sugesstions ? 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tPxuqfWgpr0J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Joseph Lust

unread,
Aug 15, 2012, 11:29:48 AM8/15/12
to google-we...@googlegroups.com
Is 'box-shadow' recognized in your version of FF? Otherwise you might want to try the vendor specific "-moz-box-shadow." Also, such vendor specific code might not work through CssResource.

Sincerely,
Joseph

mtrebizan

unread,
Feb 1, 2013, 2:29:39 AM2/1/13
to google-we...@googlegroups.com
If you have animation applied to dialog box, then "clip" property is applied to dialog box, thus preventing shadow to appear. remove animation or manually override clip property.
Reply all
Reply to author
Forward
0 new messages