fix: table cell vertical align error after page scaled #165

Co-authored-by: turingcat <tuburing@gmail.com>
pr675
turingcat 3 years ago committed by GitHub
parent f11d5c806e
commit 1fa1d10fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -135,7 +135,7 @@ export class Position {
|| td.verticalAlign == VerticalAlign.BOTTOM
) {
const rowsHeight = rowList.reduce((pre, cur) => pre + cur.height, 0)
const blankHeight = td.height! - tdGap - rowsHeight
const blankHeight = (td.height! - tdGap) * scale - rowsHeight
const offsetHeight = td.verticalAlign === VerticalAlign.MIDDLE ? blankHeight / 2 : blankHeight
if (Math.floor(offsetHeight) > 0) {
td.positionList.forEach(tdPosition => {

Loading…
Cancel
Save