1. #1
    Ext User
    Join Date
    May 2008
    Posts
    97
    Vote Rating
    0
    jraue is on a distinguished road

      0  

    Default Bug removing a TreeItem

    Bug removing a TreeItem


    A bug that shows for me is that when I remove a BaseObject from a Tree by executing store.remove(baseObjChild, baseObjParent), and the child was the parent's last child, the parent will still keep its little arrow to the left and remains expandable (arrow points downwards then, but obviously no children are shown).

    IMHO, the bug lies in TreeItemUI.class:252, which reads:

    public void removeItem(TreeItem child) {
    containerEl.removeChild(child.getElement());
    if (item.getItemCount() == 0) {
    item.setExpanded(false);
    }
    }

    IMHO, it should read:

    public void removeItem(TreeItem child) {
    containerEl.removeChild(child.getElement());
    if (item.getItemCount() == 0) {
    item.setExpanded(false);
    item.setLeaf(false);
    }
    }

    Cheers,

    Joachim

  2. #2
    Ext User
    Join Date
    May 2008
    Posts
    97
    Vote Rating
    0
    jraue is on a distinguished road

      0  

    Default


    Just tested it by changing the leaf property from a debug breakpoint, works for me like a charm.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi