This looks like a bug to me.
On Aug 19, 4:51 pm, hriess <[email protected]> wrote:
> Hi,
>
> I want to add a dependent style name to a TreeItem:
> TreeItem treeItem = new TreeItem();
> treeItem.addStyleDependentName("inactive");
> treeItem.setText(shopConstants.shoppingcart());
> treePanel.addItem(treeItem);
>
> The css:
> .gwt-TreeItem-inactive {
> color: #c0c09a;
>
> }
>
> The result is:
> <div style="padding: 3px 3px 3px 23px; margin-left: 0pt;" class="-
> inactive">
> <div style="display: inline;" class="gwt-TreeItem" role="treeitem"
> id="gwt-uid-6">Warenkorb</div>
> </div>
>
> The css class was added to the enclosing div and the css selector
> doesn't work.
> What is wrong with my code?
> I want to mark tree items (links) as inactive - or is there is a
> better way to do this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---