This margin was inconsistently calculated: only taking the visible region and interface scale into account in some cases.