From ed315586245e114f2490e55159b2eb99627c9281 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Tue, 30 Nov 2021 15:46:04 +0100
Subject: [PATCH] Fix cloze element reading of width

---
 projects/common/ui-elements/cloze/cloze-element.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projects/common/ui-elements/cloze/cloze-element.ts b/projects/common/ui-elements/cloze/cloze-element.ts
index 5ca753a80..6f8db7d04 100644
--- a/projects/common/ui-elements/cloze/cloze-element.ts
+++ b/projects/common/ui-elements/cloze/cloze-element.ts
@@ -39,7 +39,7 @@ export class ClozeElement extends CompoundElement implements PositionedElement,
     this.positionProps = initPositionedElement(serializedElement);
     this.fontProps = initFontElement(serializedElement);
 
-    this.width = serializedElement.height || 450;
+    this.width = serializedElement.width || 450;
     this.height = serializedElement.height || 200;
   }
 
-- 
GitLab