Add util method for calculate scaled measure, fix tab bar style.