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

Add styling to DropList and fix sizing

The width/height of 90% are a preliminary workaround to not produce 
overflow with the border. A better solution would be good.
parent 15bdf969
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,18 @@ import { FormElementComponent } from '../../form-element-component.directive';
@Component({
selector: 'app-drop-list',
template: `
<div class="list" cdkDropList
<!-- TODO width/height 90 to not produce overflow. find better solution. -->
<div class="list"
[style.width.%]="90"
[style.height.%]="90"
[style.color]="elementModel.fontColor"
[style.font-family]="elementModel.font"
[style.font-size.px]="elementModel.fontSize"
[style.font-weight]="elementModel.bold ? 'bold' : ''"
[style.font-style]="elementModel.italic ? 'italic' : ''"
[style.text-decoration]="elementModel.underline ? 'underline' : ''"
[style.backgroundColor]="elementModel.backgroundColor"
cdkDropList
[id]="elementModel.id"
[cdkDropListData]="this"
[cdkDropListConnectedTo]="elementModel.connectedTo"
......
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