1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Brazil - MG, Belo Horizonte
    Posts
    62
    Answers
    4
    Vote Rating
    0
    wallynm is on a distinguished road

      0  

    Talking Unanswered: Layout bug when using form insde tabpanel

    Unanswered: Layout bug when using form insde tabpanel


    Hello everybody... Today i was trying to create a window with a form inside it, as the form has too many inputs, i put it inside a tabpanel to keep the things clear... But i had some bugs with it...

    This link you can check the problem:
    http://jsfiddle.net/wallysson/vJgeg/

    Simple steps:
    1. Click on the button
    2. Close the window
    3. Click on the button again...

    IT Should execute the Ext.create again, but i think it isn't doing that... I think that he's tryng to use some trash left from the last window...

    Well... I thought to change the property closeAction to hide, but i don't wanna to change it because i would need to clear all the data everytime the user close the window... Also i think it's better destroy the window, so the browser don't keep any html trash on it...

    Anyone could help?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    When you press the close icon, it destroys the window but you are trying to simply do a window.show() but the window is destroyed. You need to recreate the window if you are going to destroy it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Location
    Brazil - MG, Belo Horizonte
    Posts
    62
    Answers
    4
    Vote Rating
    0
    wallynm is on a distinguished road

      0  

    Default


    I discovered that the problem of this window wrong resize:
    example1.png

    example.png

    was related with this window configuration...
    After remove it, my window its been reconfigured nicelly...

    Code:
    initComponent: function() {
            if(this.alias != undefined){
                // Gera os ids baseado no alias da classe
                var idName = String(this.alias[0]).split('.')[1];
    
                //this.id = idName;
                this.itemId = idName;
                this.stateId = idName;
                
                console.warn(this.id)
            }
            this.callParent(arguments);
        }

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Location
    Brazil - MG, Belo Horizonte
    Posts
    62
    Answers
    4
    Vote Rating
    0
    wallynm is on a distinguished road

      0  

    Default


    I think i can't set these propertys at the initComponent function...

    Code:
    this.id = idName;
    this.itemId = idName;
    this.stateId = idName;
    Or it should had no trouble?

Thread Participants: 1

Tags for this Thread

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