Monday, December 2, 2013

HorizontalSplitPanel - left side has zero width

Hi,

I would like to use a HorizontalSplitPanel with UIBinder (see below).

The left side of the HorizontalSplitPanel has a zero width and I also cannot change this by dragging the vertical split bar.
I have set the SplitPosition to "150px" and I also made sure that there is some content in the left panel.

Within GWT Designer, when opening the preview, it also opens with a zero left side at the first time. But when opening it again, it shows a non-zero width.

Where is the problem?

Thanks
Magnus

-----

  <g:DockLayoutPanel unit="PX" width="100%" height="100%">
    
     <g:center>

    <g:HorizontalSplitPanel splitPosition="150px" width="" height="">
    
    <g:DockLayoutPanel unit="PX" width="100%" height="100%">
    
     <g:north size="30">
      <g:FlowPanel>
      <g:ListBox width="" ui:field="lst_Category"/>
      </g:FlowPanel>
     </g:north>
     
     <g:south size="25">
      <g:HorizontalPanel width="100%" height="100%" verticalAlignment="ALIGN_MIDDLE">
       <g:Cell width="20px">
        <g:PushButton text="+" width="16px"/>
       </g:Cell>
        <g:PushButton text="-" width="16px"/>
      </g:HorizontalPanel>
     </g:south>
     
     <g:center>
      <p1:CellList ui:field="cellList"/>
     </g:center>
    </g:DockLayoutPanel>

    <g:DockLayoutPanel unit="PX" width="100%" height="100%">
    
     <g:south size="25">
      <g:HorizontalPanel width="100%" height="100%" verticalAlignment="ALIGN_MIDDLE">
       <g:Cell width="20px">
        <g:PushButton text="+" width="16px"/>
       </g:Cell>
        <g:PushButton text="-" width="16px"/>
      </g:HorizontalPanel>
     </g:south>
     
     <g:center>
    <g:TabLayoutPanel barHeight="2" barUnit="EM" width="100%" height="100%" ui:field="tab"/>
     </g:center>
    </g:DockLayoutPanel>


    
    </g:HorizontalSplitPanel>

     </g:center>
  </g:DockLayoutPanel>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment