Skip to content
Snippets Groups Projects
Commit 8e243521 authored by mechtelm's avatar mechtelm
Browse files

Merge complete for spell-correct

parent ba9862c0
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,6 @@ export class SpellCorrectElement extends InputElement implements FontElement, Su ...@@ -23,6 +23,6 @@ export class SpellCorrectElement extends InputElement implements FontElement, Su
this.surfaceProps.backgroundColor = this.surfaceProps.backgroundColor =
serializedElement.surfaceProps?.backgroundColor as string || 'transparent'; serializedElement.surfaceProps?.backgroundColor as string || 'transparent';
this.height = serializedElement.height || 80; this.height = serializedElement.height || 80;
this.width = serializedElement.width || 200; this.width = serializedElement.width || 230;
} }
} }
...@@ -10,7 +10,7 @@ import { SpellCorrectElement } from './spell-correct-element'; ...@@ -10,7 +10,7 @@ import { SpellCorrectElement } from './spell-correct-element';
<div fxFlex <div fxFlex
fxLayout="column" fxLayout="column"
[style.width.%]="100" [style.width.%]="100"
appInputBackgroundColor [backgroundColor]="elementModel.backgroundColor" appInputBackgroundColor [backgroundColor]="elementModel.surfaceProps.backgroundColor"
[style.height.%]="100"> [style.height.%]="100">
<mat-form-field class="small-input"> <mat-form-field class="small-input">
<input matInput type="text" <input matInput type="text"
...@@ -19,11 +19,11 @@ import { SpellCorrectElement } from './spell-correct-element'; ...@@ -19,11 +19,11 @@ import { SpellCorrectElement } from './spell-correct-element';
[formControl]="elementFormControl"> [formControl]="elementFormControl">
</mat-form-field> </mat-form-field>
<button mat-button <button mat-button
[style.color]="elementModel.fontColor" [style.color]="elementModel.fontProps.fontColor"
[style.font-family]="elementModel.font" [style.font-family]="elementModel.fontProps.font"
[style.font-size.px]="elementModel.fontSize" [style.font-size.px]="elementModel.fontProps.fontSize"
[style.font-weight]="elementModel.bold ? 'bold' : ''" [style.font-weight]="elementModel.fontProps.bold ? 'bold' : ''"
[style.font-style]="elementModel.italic ? 'italic' : ''" [style.font-style]="elementModel.fontProps.italic ? 'italic' : ''"
[style.width.%]="100" [style.width.%]="100"
[style.margin-top]="'-20px'" [style.margin-top]="'-20px'"
[style.text-decoration-line]="strikethrough() ? 'line-through' : ''" [style.text-decoration-line]="strikethrough() ? 'line-through' : ''"
......
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