-
3 Feb 2012 7:25 AM #1Sencha User
- Join Date
- Oct 2010
- Location
- Brazil - MG, Belo Horizonte
- Posts
- 62
- Vote Rating
- 0
- Answers
- 4
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?
-
3 Feb 2012 7:37 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3160
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
________________
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.
-
3 Feb 2012 11:12 AM #3Sencha User
- Join Date
- Oct 2010
- Location
- Brazil - MG, Belo Horizonte
- Posts
- 62
- Vote Rating
- 0
- Answers
- 4
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); }
-
3 Feb 2012 11:14 AM #4Sencha User
- Join Date
- Oct 2010
- Location
- Brazil - MG, Belo Horizonte
- Posts
- 62
- Vote Rating
- 0
- Answers
- 4
I think i can't set these propertys at the initComponent function...
Or it should had no trouble?Code:this.id = idName; this.itemId = idName; this.stateId = idName;


Reply With Quote