Skip to content
Snippets Groups Projects
Commit 06964855 authored by jojohoch's avatar jojohoch
Browse files

Use fixed size property for small text-field component

parent cc1b021f
No related branches found
No related tags found
No related merge requests found
...@@ -40,8 +40,10 @@ import { TextFieldElement } from './text-field-element'; ...@@ -40,8 +40,10 @@ import { TextFieldElement } from './text-field-element';
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field *ngIf="elementModel.label === ''" class="small-input" <mat-form-field *ngIf="elementModel.label === ''" class="small-input"
[style.width.%]="100" [class.center-content]="elementModel.positionProps.dynamicPositioning &&
[style.height.%]="100" elementModel.positionProps.fixedSize"
[style.width]="elementModel.positionProps.fixedSize ? elementModel.width + 'px' : '100%'"
[style.height]="elementModel.positionProps.fixedSize ? elementModel.height + 'px' : '100%'"
[style.color]="elementModel.fontProps.fontColor" [style.color]="elementModel.fontProps.fontColor"
[style.font-family]="elementModel.fontProps.font" [style.font-family]="elementModel.fontProps.font"
[style.font-size.px]="elementModel.fontProps.fontSize" [style.font-size.px]="elementModel.fontProps.fontSize"
......
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