未验证 提交 a7fe5a47 编写于 作者: Y Yi Shen 提交者: GitHub

Merge pull request #13902 from Nick22nd/fix-11508

fix(Calendar): fix day label drifting. close #11508
......@@ -518,7 +518,7 @@ class CalendarView extends ComponentView {
).time;
const cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()];
margin = numberUtil.parsePercent(margin, cellSize[orient === 'horizontal' ? 0 : 1]);
margin = numberUtil.parsePercent(margin, Math.min(cellSize[1], cellSize[0]));
if (pos === 'start') {
start = coordSys.getNextNDay(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册