I have a "StackLayoutPanel" sitting on top of a spiffy gradient
background, but the content area of the stacks is an ugly plain old
white.
So I figured the fix would be easy -- just stick a "addStyleNames"
attribute in UiBinder definition on the content widget of the stack
content and make the background-color transparent.
But the background is still white. In the HTML it can be seen that the
user supplied style comes after the widget standard style, but BEFORE
the gwt-StackLayoutPanelContent, and it is the latter that is giving
the white background:
<div class="gwt-HTML G19s8967A gwt-StackLayoutPanelContent" ...>
The question is: why does the user supplied not come last so it can
have the final say? Or maybe, why does gwt-StackLayoutPanelContent
define a background color at all?
This is a concrete example:
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:style>
.panel {background-color: transparent;}
</ui:style>
<g:StackLayoutPanel unit="EM" addStyleNames="{style.panel}">
<g:stack>
<g:header size="2">HEADER</g:header>
<g:HTML addStyleNames="{style.panel}">
<h2>Content</h2>
<ol>
<li>Hello</li>
<li>Bye</li>
</ol>
</g:HTML>
</g:stack>
<g:stack>
<g:customHeader size="2">
<g:Label>Label Header</g:Label>
</g:customHeader>
<g:HTML addStyleNames="{style.panel}">
<h2>Content 2</h2>
<p>Blah blah blah blah blah blah blah blah blah
blah blah blah
blah blah.</p>
</g:HTML>
</g:stack>
</g:StackLayoutPanel>
</ui:UiBinder>
--
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.