From 318170e99271d740dd23f96316b3b6be8ed1f82d Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Fri, 23 Dec 2022 11:43:03 +0100 Subject: [PATCH] [editor] Change default value for line height of cloze children - text field simple - toggle button --- docs/release-notes-editor.md | 8 ++++++++ .../cloze/cloze-child-elements/text-field-simple.ts | 2 +- .../cloze/cloze-child-elements/toggle-button.ts | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/release-notes-editor.md b/docs/release-notes-editor.md index 6314446f0..57b3ffdaf 100644 --- a/docs/release-notes-editor.md +++ b/docs/release-notes-editor.md @@ -1,5 +1,13 @@ Editor ====== +## 1.36.2 +- Setzt für Eingabe- und Optionsfelder in Lückentexten den voreingestellten Wert für die Zeilenhöhe auf 100% + +## 1.36.1 +### Verbesserungen +- Unterstützt neue Darstellungen (s. Player Version 1.29.1) + + ## 1.36.0 ### Neue Funktionen - Bietet unterschiedliche Startpositionen für schwebende Eingabehilfen an diff --git a/projects/common/models/elements/compound-elements/cloze/cloze-child-elements/text-field-simple.ts b/projects/common/models/elements/compound-elements/cloze/cloze-child-elements/text-field-simple.ts index 5ba0f3b2f..73c50aa8f 100644 --- a/projects/common/models/elements/compound-elements/cloze/cloze-child-elements/text-field-simple.ts +++ b/projects/common/models/elements/compound-elements/cloze/cloze-child-elements/text-field-simple.ts @@ -31,7 +31,7 @@ export class TextFieldSimpleElement extends TextInputElement { if (element.patternWarnMessage !== undefined) this.patternWarnMessage = element.patternWarnMessage; if (element.clearable) this.clearable = element.clearable; this.styling = { - ...UIElement.initStylingProps({ lineHeight: 135, backgroundColor: 'transparent', ...element.styling }) + ...UIElement.initStylingProps({ lineHeight: 100, backgroundColor: 'transparent', ...element.styling }) }; } diff --git a/projects/common/models/elements/compound-elements/cloze/cloze-child-elements/toggle-button.ts b/projects/common/models/elements/compound-elements/cloze/cloze-child-elements/toggle-button.ts index dd887031a..fd03ac90c 100644 --- a/projects/common/models/elements/compound-elements/cloze/cloze-child-elements/toggle-button.ts +++ b/projects/common/models/elements/compound-elements/cloze/cloze-child-elements/toggle-button.ts @@ -27,7 +27,7 @@ export class ToggleButtonElement extends InputElement { if (element.dynamicWidth !== undefined) this.dynamicWidth = element.dynamicWidth; this.styling = { ...UIElement.initStylingProps({ - lineHeight: 135, + lineHeight: 100, selectionColor: '#c7f3d0', backgroundColor: 'transparent', ...element.styling -- GitLab