1. #1
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default [2.1] FieldSet layout issue

    [2.1] FieldSet layout issue


    When I add checkbox on fieldset, if add a lot itens, the height fits perfectly, but to remove all itens and add new, the fieldset height not just reducing. Note: in Safari works perfectly.

    Operating System and Browser tested
    Microsoft Windows XP
    Profession
    Vers
    Attached Images

  2. #2
    Ext User
    Join Date
    Mar 2008
    Posts
    13
    Vote Rating
    0
    rct is on a distinguished road

      0  

    Default


    I've the same behavior.

    When all checkbox are removed, it remains nodes like that :
    Code:
    <div class="x-form-item x-hide-label" tabindex="-1">
    <label class="x-form-item-label" style="width: 100px;" for="ext-comp-1117">:</label>
    <div id="x-form-el-ext-comp-1117" class="x-form-element" style="padding-left: 105px;"/>
    <div class="x-form-clear-left"/>
    </div>

  3. #3
    Ext User
    Join Date
    Mar 2008
    Posts
    13
    Vote Rating
    0
    rct is on a distinguished road

      0  

    Default


    It's not a pretty way to resolve the problem but I share what I've done to make things work :

    Code:
            // normal removing of checkboxes
            this.oComponent.items.each (function (item, index, length) {
                this.oComponent.remove(item);
                
            }, this);
            // the dirty cleanup here :p
            var toDelete = this.oComponent.getEl().query('div[class=x-form-item x-hide-label]');
            for (var i=0; i<toDelete.length; i++) {
                Ext.fly(toDelete[i]).remove();
            }
    If it could help...

  4. #4
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Exclamation


    thanks, solme my problem

    look

    doLayout( [Boolean shallow] ) : void

    Force this container's layout to be recalculated. A call to this function is required after adding a new component to...
    Force this container's layout to be recalculated. A call to this function is required after adding a new component to an already rendered container, or possibly after changing sizing/position properties of child components.
    Parameters:

    * shallow : Boolean
    (optional) True to only calc the layout of this component, and let child components auto calc layouts as required (defaults to false, which calls doLayout recursively for each subcontainer)

    Returns:

    * void

    i believe that this function can do the work for me.

  5. #5
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    solve but only firefox, safari and netscape work fine.. to opera and ie7 no.

  6. #6
    Ext User
    Join Date
    Mar 2008
    Posts
    13
    Vote Rating
    0
    rct is on a distinguished road

      0  

    Default


    Ok, let me know if it has worked for you but I think I've already tested it (without the shallow option ! it can make the difference) without success.

    The problem is that the container has no more component inside it, but when you've removed the components, the labels seems to not have been cleaned completely.

  7. #7
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    if i pass by param true in e.g. doLayout(true); the same problem continue.. someone has another ideia?

    thanks

Thread Participants: 1