PDA

View Full Version : Tabs' width in a layout is not changed when the region width changes



maya
22 Aug 2007, 3:05 AM
Hi,

I have a region with two bottom tabs (I created a new Ext.BorderLayout, with a region "west", and inside west there are two ContentPanels).

When I resize the region the tabs' width is not changed accordingly (getting thinner or wider).

Any ideas?

Thanks,
Maya

jsakalos
26 Aug 2007, 2:49 PM
Have you configured content panels with fitToFrame:true and fitContainer:true?

maya
30 Aug 2007, 8:43 AM
Thanks for your answer.
Yes, I did use those two definitions.

Pls. find enclosed my code:


layout.add('west', new Ext.ContentPanel('classes', {title: "First", fitToFrame:true, toolbar:tree_toolbar, fitContainer:true}));
layout.add('west', new Ext.ContentPanel('search_results', {title: "Second", fitToFrame:true, fitContainer:true}));

jsakalos
30 Aug 2007, 10:23 AM
A question came to my mind... By tabs you mean that small things with titles that you click when you want to change tab?

If yes, I don't believe that their width should change with region/window resizing.

maya
2 Sep 2007, 8:11 AM
Yes - By tabs I mean the tab titles - sorry for being unclear.

When I create a TabPanel with TabPanelItems inside - their title's rectangle width changes when I change their window's width, and also their text gets shorter or longer.

Can I reach the same effect with tab titles created in a region?

Thanks again,
Maya

jsakalos
2 Sep 2007, 2:09 PM
resizeTabs:true

maya
3 Sep 2007, 4:58 AM
I did that - but the Tabs are not resized. Any other ideas?

janixams
2 Jun 2008, 8:55 PM
I used risizeTab and this work fine.
But, when the tab title is so long, only a part can be seen. ResizeTab asign a standard with to all the tabs in the region. Now I ask: How can I resize all tabs without losing part of title?
Thanks for your help.

jsakalos
3 Jun 2008, 12:47 AM
Is your tab title longer than here: http://examples.extjs.eu/?ex=gridintab ?