fixed layout resize bug in tab