Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: wrong content height calculation (#1063)
Ran Luo5d7223b5edc2
diff --git a/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts b/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.tsindex bcc54974c0..6c21ed8769 100644--- a/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts+++ b/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts@@ -274,7 +274,8 @@ function _lineOperator(const column = columnInfo!.column;const line = getLastLineByColumn(column);- const { ba: ascent, bd: descent } = spanGroup[0].bBox;+ const ascent = Math.max(...spanGroup.map((span) => span.bBox.ba));+ const descent = Math.max(...spanGroup.map((span) => span.bBox.bd));const spanLineHeight = defaultSpanLineHeight || ascent + descent;const {