take defaultAlign into account when calculating offset