Skip to content

Commit 7343f19

Browse files
andrieputangbc
authored andcommitted
Remove unnecessary padding bottom when decimal number is used
1 parent babf33d commit 7343f19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@
351351
paddingBottom = this.size * (hasPadding ? delta.total - delta.keeps : 0) - paddingTop
352352
}
353353

354+
if (paddingBottom < this.size) {
355+
paddingBottom = 0
356+
}
357+
354358
delta.paddingTop = paddingTop
355359
delta.paddingBottom = paddingBottom
356360
delta.offsetAll = allHeight - this.size * this.remain

0 commit comments

Comments
 (0)