Skip to content

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.

fix: can not edit in footer (#2956)

Ran Luo28c951b51b4f
diff --git a/packages/engine-render/src/components/docs/layout/doc-skeleton.ts b/packages/engine-render/src/components/docs/layout/doc-skeleton.ts
index 3b26e6745b..0e3517a72f 100644
--- a/packages/engine-render/src/components/docs/layout/doc-skeleton.ts
+++ b/packages/engine-render/src/components/docs/layout/doc-skeleton.ts
@@ -689,14 +689,10 @@ export class DocumentSkeleton extends Skeleton {
x: number,
y: number,
nestLevel: number = 0
- // eslint-disable-next-line ts/no-explicit-any
+ // eslint-disable-next-line ts/no-explicit-any
): any {
const { sections, skeTables } = segmentPage;
this._findLiquid.translateSave();
- const pointInPage = x >= this._findLiquid.x
- && x <= this._findLiquid.x + segmentPage.pageWidth
- && y >= this._findLiquid.y
- && y <= this._findLiquid.y + segmentPage.pageHeight;
switch (pageType) {
case DocumentSkeletonPageType.HEADER: {
@@ -719,6 +715,11 @@ export class DocumentSkeleton extends Skeleton {
}
}
+ const pointInPage = x >= this._findLiquid.x
+ && x <= this._findLiquid.x + segmentPage.pageWidth
+ && y >= this._findLiquid.y
+ && y <= this._findLiquid.y + segmentPage.pageHeight;
+
if (pointInPage) {
for (const section of sections) {
const { columns } = section;