Skip to content

Commit

Permalink
fix: axis height buffer modify from 2 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Jan 23, 2024
1 parent c7224f2 commit 980038f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function computeAxisComponentWidth(config: ICellAxisOption, table: BaseTa
titleWidth += attribute.title.space ?? 4;
}

return tickWidth + labelWidth + titleWidth + 2; // 2 is buffer
return tickWidth + labelWidth + titleWidth + 1; // 2 is buffer
}

/**
Expand Down Expand Up @@ -170,7 +170,7 @@ export function computeAxisComponentHeight(config: ICellAxisOption, table: BaseT
titleHeight += attribute.title.space ?? 4;
}

return tickHeight + labelHeight + titleHeight + 2; // 2 is buffer
return tickHeight + labelHeight + titleHeight + 1; // 2 is buffer
}

// 保留一位有效数字
Expand Down

0 comments on commit 980038f

Please sign in to comment.