Hi all,

I'm stuck trying to get an accordion widget working. As I understand
it, StackLayoutPanel is meant for this sort of thing. So I've
implemented the following:

<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder
  xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'
>
  <g:FlowPanel>
    <g:StackLayoutPanel unit="EX">
      <g:stack>
        <g:customHeader size="4">
          <g:Label>Stack One</g:Label>
        </g:customHeader>
        <g:Button>Button X</g:Button>
      </g:stack>
      <g:stack>
        <g:customHeader size="4">
          <g:Label>Stack Two</g:Label>
        </g:customHeader>
        <g:Button>Button Y</g:Button>
      </g:stack>
    </g:StackLayoutPanel>
  </g:FlowPanel>
</ui:UiBinder>

All this shows is the "Stack One" header. The button ("Button X") is
invisible. When I hover the mouse over the header firebug shows me
that the style changes so *something* is working. Clicking on the
header has no effect, however.

Clearly, I'm doing something wrong. I've tried different parent panels
(HTMLPanel and AbsolutePanel instead of FlowPanel). I've tried just
displaying the two buttons (no StackLayoutPanel) and that works
normally. I've tried different units (PX and EM instead of EX).
Nothing seems to make any difference. Any pointers?

Cheers,
Hilco

-- 
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