1. #1
    Sencha User baradas's Avatar
    Join Date
    Jun 2008
    Location
    Mumbai Madness
    Posts
    21
    Vote Rating
    0
    baradas is on a distinguished road

      0  

    Default Problems with Collapsible bar of BorderLayout

    Problems with Collapsible bar of BorderLayout


    Hi,
    I am facing some problems when I set the Split property to true in a BorderLayout.
    Code:
            
        protected void onRender(Element parent, int pos) {
            super.onRender(parent, pos);
            setLayout(new BorderLayout());
            leftWidget= new ContentPanel();
            rightWidget = new VerticalPanel();
    
            BorderLayoutData leftWidgetLayout = new BorderLayoutData(
                    LayoutRegion.WEST, 360);
            leftWidgetLayout.setCollapsible(true);
            leftWidgetLayout.setSplit(true);
    
            BorderLayoutData rightWidgetLayout = new BorderLayoutData(
                    LayoutRegion.CENTER);
            rightWidgetLayout.setMargins(new Margins(0, 5, 0, 5));
    
            add(leftWidget, leftWidgetLayout);
            add(rightWidget, rightWidgetLayout);
        }
    The split button is rendered on the left side. See associated image for what I mean.

    Due to this if I also set the "collapsible" property to "true" for ContentPanel on left then it is also rendered at the same place as the collapsible image.

    GXT - 1.0
    GWT-1.5.0

    Regards
    baradas
    Attached Images