From ccba95f541c1a9779c701d1038bcd32627edf6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Tue, 20 Oct 2020 09:24:32 +0200 Subject: [PATCH] :bug: Fix masking of texts shapes (within a foreignObject element) --- frontend/src/app/main/ui/shapes/group.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/shapes/group.cljs b/frontend/src/app/main/ui/shapes/group.cljs index c261899b8c..608cb0bc2e 100644 --- a/frontend/src/app/main/ui/shapes/group.cljs +++ b/frontend/src/app/main/ui/shapes/group.cljs @@ -37,7 +37,9 @@ [:g (when mask [:defs - [:mask {:id (:id mask)} + [:mask {:id (:id mask) + :width width + :height height} [:& shape-wrapper {:frame frame :shape mask}]]]) [:& (mf/provider mask-id-ctx) {:value (str/fmt "url(#%s)" (:id mask))}