From bbfca3a67f436f6ca66d601034ba2be7fa404507 Mon Sep 17 00:00:00 2001 From: Heiko Joerg Schick Date: Sat, 8 Mar 2025 18:34:10 +0100 Subject: [PATCH] Minor changes --- src/taskpane/components/RoundImage.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/taskpane/components/RoundImage.tsx b/src/taskpane/components/RoundImage.tsx index 04160f59..8d3bbc4a 100644 --- a/src/taskpane/components/RoundImage.tsx +++ b/src/taskpane/components/RoundImage.tsx @@ -108,7 +108,11 @@ export const RoundImage: React.FC = () => { await context.sync(); maskShape.left = shape.left; - maskShape.top = shape.top + 1; // TODO: Why + 1 + + shape.lineFormat.load(["weight"]); + await context.sync(); + + maskShape.top = shape.top + shape.lineFormat.weight; maskShape.width = shape.width; maskShape.height = shape.height; maskShape.fill.setSolidColor("red");