set percent value to be calculated using value and max rather than width