Right. The solution I use is
A) get the "current" TabHeight, TabHostPadding & TabContentViewPadding
B) compute the "extra space" gained by "future" TabHeight, TabHostPadding & TabContentViewPadding
C) increase the inner panel width & height by that extra space
D) set (apply) the new TabHeight, TabHostPadding & TabContentViewPadding