caculate dim with sep tab
caculate dim with sep space