1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    43
    Vote Rating
    2
    Answers
    2
    Tioecomp is on a distinguished road

      0  

    Default Answered: Select field increasing DOM

    Answered: Select field increasing DOM


    Hi all,

    I have a panel that contain several select field when I load the panel I have 400 elements at my DOM, when I start to click at the fields, even if I dont select any option, my DOM start to increase at each click When I finish to click at all the fields I have 1000 elements on my DOM. I want to know if it is possible to destroy these overlays that is being created.

  2. Could have been a bug, I'm seeing it destroy the picker using 2.1.0

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    436
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    When the field is destroyed it should destroy the picker.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  4. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    43
    Vote Rating
    2
    Answers
    2
    Tioecomp is on a distinguished road

      0  

    Default


    It should destroy, but it isnt destroying I'm using panelWithFields.destroy( ) to eliminate the panel, but I still can see the overlays at my DOM. Any sugestion? I'm using sencha touch 2.0

  5. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    436
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Could have been a bug, I'm seeing it destroy the picker using 2.1.0
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  6. #5
    Sencha User
    Join Date
    Oct 2012
    Posts
    43
    Vote Rating
    2
    Answers
    2
    Tioecomp is on a distinguished road

      0  

    Default


    Probably, I just tried to destroy each innerItem and after destroy the panel, that worked for me.