Unanswered: Autoheight tabPanel when tab content changed
I know this question has been asked for a dozen of times, but I can't find correct answer for my case.
All I want to have is ExtJS tabPanel with 1 tab, content of which can be changed dinamycaly. For example 3 line text may be replaced with 30 lines text.
My code is following http://jsfiddle.net/andreyb89/PYYaq/1/
I have seen answers that I must put panel in some other container with layout: 'fit', so I tried to put panel in Ext.container.Container with layout: 'fit' but there is no result. If I change inner text tabs do not change its height (because tab div has style='height:55px'...)
My sample with Container http://jsfiddle.net/andreyb89/CMtFB/2/
Unfortunatly I can't know when my content div will change it's size, so I can't call .doLayout() every time content has been changed.
Any suggestions? What am I doing wrong?
Tags for this Thread