better offset calculation for barPadding