-
16 Mar 2011 11:59 AM #1Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
[OPEN-EXTJSIV-211] Floating TabPanel height change
[OPEN-EXTJSIV-211] Floating TabPanel height change
I have a floating TabPanel with a couple tabs. One of them is a FormPanel that has many items under it. When switch to that tab, the TabPanel should resize itself but it never does. I have tried adding a listener to the cardswitch event to do the layout to the new card and tabpanel but nothing solid works.
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.
-
16 Mar 2011 12:23 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Turns out it's not just on floating TabPanels. When you switch tabs, the height does not act right. Best way to show you is a form I made with a TabPanel it in. If you switch between tabs, the height adjusts but half the time the height is not correct. Code is lengthy.
http://www.simoens.org/videos/PR4%20...l%20Height.mp4
Code:new Ext.form.FormPanel({ renderTo : Ext.getBody(), width: 500, title : "Test", defaults : { anchor : "100%" }, items : [ { layout : "column", border : false, items : [ { columnWidth : .5, border : false, frame : true, layout : "anchor", defaults : { anchor : "100%" }, defaultType : "textfield", items : [ { fieldLabel : "First Name" }, { fieldLabel : "Company" } ] }, { columnWidth : .5, border : false, frame : true, layout : "anchor", defaults : { anchor : "100%" }, defaultType : "textfield", items : [ { fieldLabel : "Last Name" }, { fieldLabel : "Email", vtype : "email" } ] } ] }, { xtype : "tabpanel", plain : true, activeTab : 0, defaults : {bodyStyle:"padding:10px"}, items : [ { title : "Phone Numbers", frame : true, defaults : { anchor : "100%" }, defaultType : "textfield", autoScroll : true, items : [ { fieldLabel : "Home" }, { fieldLabel : "Business" }, { fieldLabel : "Mobile" }, { fieldLabel : "Fax" } ] }, { title : "Address", frame : true, defaults : { anchor : "100%" }, defaultType : "textfield", autoScroll : true, items : [ { fieldLabel : "House #" }, { fieldLabel : "Street" }, { fieldLabel : "Apartment" }, { fieldLabel : "City" }, { fieldLabel : "State" }, { fieldLabel : "Zip" } ] } ] }, { xtype : "textarea", fieldLabel : "Note", allowBlank : false, tabIndex : 6 } ] });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.
-
16 Mar 2011 1:18 PM #3Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 48
Your tabpanel childen have no layout specified, could that be the cause?
-
16 Mar 2011 1:24 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
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.
-
16 Mar 2011 11:03 PM #5
I am experiencing the same problem with TabPanels. It's not limited to just Forms, it also does it with a Grid inside the tab as well.
-
19 Mar 2011 4:10 PM #6
Just wanted to confirm this is still an issue in PR5.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
how to change tab height in tabpanel?
By mbenothmane in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 11 Jul 2011, 12:42 AM -
[OPEN] [OPEN-539] 1.0RC: Floating TabPanel
By v2toda in forum Sencha Touch 1.x: BugsReplies: 3Last Post: 7 Jun 2011, 11:38 PM -
[FIXED-EXTJSIV-190] TabCloseMenu
By James Goddard in forum Ext:BugsReplies: 2Last Post: 7 Apr 2011, 5:35 AM -
[OPEN-EXTJSIV-196] change and keypress events do not fire for ComboBox
By sidamos77 in forum Ext:BugsReplies: 0Last Post: 21 Mar 2011, 5:56 AM -
how to change tab height in tabpanel?
By mbenothmane in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 21 Feb 2009, 10:19 AM


Reply With Quote