-
3 Oct 2012 4:54 AM #1
Answered: TabPanel's tabbar is not sizing
Answered: TabPanel's tabbar is not sizing
Hi, I have got a little problem with the headers in my tabpanel. I have to display two-lined written titles, but I can't manage to resize the header, so it doesn't show right. Any ideas ?
-
Best Answer Posted by scottmartin
You may have to tweak it a little, but you get the idea:
http://jsfiddle.net/eGVqR/
Scott.
-
3 Oct 2012 6:01 PM #2Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,186
- Vote Rating
- 194
- Answers
- 433
Please create a small working example to help us understand the problem. You can use the example in API docs as a starting point.
Scott.
-
3 Oct 2012 10:51 PM #3
Sorry, I didn't figure out.
Here's a code sample :
And here's the result :Code:Ext.create('Ext.tab.Panel', { width: 300, height: 200, activeTab: 1, items: [ { title: 'Tab 1', bodyPadding: 10, html : 'A simple tab' }, { title: '<font color="blue">Foo</font><br /><font color="red">Bar</font>', html : 'The tab which is causing problem' } ], renderTo : Ext.getBody() });
imgOngletDefectueux.png
You can see that the tab isn't properly displayed, and I can't figure out about how I could fix it. The separator between the tabBar and the tabBody resizes, but the tabBar itself doesn't.
Please help
-
4 Oct 2012 7:20 AM #4Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,186
- Vote Rating
- 194
- Answers
- 433
-
4 Oct 2012 12:36 PM #5
Works great thanks!
Works great thanks!
Thanks so much, exactly what I needed.
mark
-
5 Oct 2012 1:54 AM #6
I'm grateful, thank you very much ! It finally works fine for me, so I can continue on, thanks again.


Reply With Quote