Skip to content
Snippets Groups Projects
Commit adb14e60 authored by rhenck's avatar rhenck
Browse files

Fix reading existing dimension props in cloze and simple text field

parent 1442163d
No related branches found
No related tags found
No related merge requests found
...@@ -38,8 +38,9 @@ export class ClozeElement extends CompoundElement implements PositionedElement, ...@@ -38,8 +38,9 @@ export class ClozeElement extends CompoundElement implements PositionedElement,
Object.assign(this, serializedElement); Object.assign(this, serializedElement);
this.positionProps = initPositionedElement(serializedElement); this.positionProps = initPositionedElement(serializedElement);
this.fontProps = initFontElement(serializedElement); this.fontProps = initFontElement(serializedElement);
this.height = 200;
this.width = 500; // TODO this.width = serializedElement.height || 450;
this.height = serializedElement.height || 200;
} }
setProperty(property: string, value: InputElementValue | string[] | LikertColumn[] | LikertRow[]): void { setProperty(property: string, value: InputElementValue | string[] | LikertColumn[] | LikertRow[]): void {
......
...@@ -4,5 +4,7 @@ export class TextFieldSimpleElement extends InputElement { ...@@ -4,5 +4,7 @@ export class TextFieldSimpleElement extends InputElement {
constructor(serializedElement: UIElement) { constructor(serializedElement: UIElement) {
super(serializedElement); super(serializedElement);
Object.assign(this, serializedElement); Object.assign(this, serializedElement);
this.height = serializedElement.height || 25;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment