Fixes tab layout when changing device orient.