Re: Borders on Decorator panel
It seems that the border is an image, making it quite troublesome to
work with it with CSS.
So I decided to work with the middleCenter element of the panel, that
gives a nice orange border around my widgets:
.gwt-DecoratorPanel .middleCenter{
border-style: solid;
border-width:1;
border-color: #CC6600;
}
Now I want to apply this style to only a few specific widgets. That
is:
#unsavedNote .middleCenter{...}
However calling this code from the widget constructor:
this.setStylePrimaryName("unsavedNote");
Produces no results, I'm inspecting the source with Chrome and I can
tell that the element doesn't have the that style(it has gwt-
DecoratorPanel)
Help?
On Jan 2, 9:20 am, Marcelo Sena <marceloslace...@gmail.com> wrote:
> I don't know how to change the color in a decorator panel. I tried
> looking for help in the documentation so I wrote this to my main css:
>
> .gwt-DecoratorPanel.topLeft{
> border-style: solid;
> border-width:1;
> border-color: RED;
>
> }
>
> But the border is still blue, what do I do?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home