-
17 Jan 2012 11:54 PM #1
Unanswered: TabPanel not showing without refresh or resize
Unanswered: TabPanel not showing without refresh or resize
Hey,
I have a complex multiple step form putted in tabpanel but I noticed that there are some bugs when I tr to open it.
If I try to access form from other cards everything appears to be working, data is loaded from stores, no javascript errors, I see every docked items but the content is not visible until I resize the window.
On the other hand, if I refresh site when on the form everything is showing correctly, even if I move out and in the form again.
As I mentioned before, form is complex it has elements I'm adding on the fly, and calling doComponentLayout.
If it's neccessary I can attach some code, but unlike the form itself the code calling the form is pretty simple.
Do anybody have some advice why is this happening?
-
18 Jan 2012 4:49 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
I would use a remote debugger like weinre to see if the tabpanel is rendered and if so if it has a height.
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.
-
18 Jan 2012 6:13 AM #3
Thanks, I checked the html rendered using Chrome Inspect
Here's how it looks
after resizing code changes, top toolbar appears in code, and the first active item is filled.Code:<div id="BookingForm" class="x-panel x-tabpanel x-tabpanel-dark x-fit-item" style="left: 0px; top: 0px; "> <div class="x-panel-body x-layout-fit" id="ext-gen1050"> <div id="clientList" class=" x-panel x-fit-item" style=""> <div class="x-panel-body" id="ext-gen1051"></div> </div> <div id="ext-comp-1019" class="x-panel x-fit-item x-hidden-display"> <div class="x-panel-body" id="ext-gen1054"></div> </div> <div id="ext-comp-1024" class="x-panel x-fit-item x-hidden-display"> <div class="x-panel-body" id="ext-gen1057"></div> </div> <div id="calendarPanel" class="x-panel x-fit-item x-hidden-display"> <div class="x-panel-body" id="ext-gen1060"></div> </div> <div id="timePanel" class="x-panel x-fit-item x-hidden-display"> <div class="x-panel-body" id="ext-gen1063"></div> </div> <div id="ext-comp-1014" class="x-panel x-fit-item x-hidden-display"> <div class="x-panel-body" id="ext-gen1066"></div> </div> <div id="ext-comp-1016" class="x-panel x-fit-item x-hidden-display"> <div class="x-panel-body" id="ext-gen1069"></div> </div> </div> </div>
As you can see, panels also don't have any height set.
Do you know how to fix that?
-
18 Jan 2012 6:28 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
x-item-fit CSS rule may do the sizing.
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.
-
18 Jan 2012 6:36 AM #5
@mitchellsimoens
x-item-fit not x-fit-item?
And where should I apply this rule? TabPanel?
Thanks
Kamil
-
18 Jan 2012 6:39 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
I'm sorry... x-fit-item
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.
-
18 Jan 2012 6:43 AM #7
hm, but class "x-fit-item" is present in rendered code. But there's no height and content.
I tried adding specific cls: "x-fit-item" to both panels, and tabpanel, but it didn't help :/


Reply With Quote