PDA

View Full Version : Beta2. I don't understand BorderLayoutContainer.



Konstantin.Scheglov
29 Jan 2012, 9:54 AM
...or may be it works not as I expect.
...or BorderLayoutContainer has bug.

Why with code below I see collapse button on the "west" panel, but it does not work?


<ui:UiBinder> <ui:with type="com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData" field="borderLayoutData">
<ui:attributes size="0.3" collapsible="true" split="true"/>
</ui:with>
<ui:style>
.panel {
background-color: ivory;
}
</ui:style>


<container:BorderLayoutContainer styleName="{style.panel}">
<container:west layoutData="{borderLayoutData}">
<c:ContentPanel/>
</container:west>
<container:center>
<c:ContentPanel/>
</container:center>
</container:BorderLayoutContainer>
</ui:UiBinder>

rohdef
30 Jan 2012, 12:46 AM
I've seen some people observing problems if not all parts of the BorderLayoutContainer is in use. You could try putting empty ContentPanels in the rest of the borders (north, east and south), and see if it works. If it does you could have found an already know bug.

Konstantin.Scheglov
30 Jan 2012, 6:31 PM
Hm...
No, this does not help - my ContentPanel still ignores pressing of collapse button.