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

[player] Init elements of hidden section on start

Use "display:none" instead of "*ngIf" to hide the section and make sure
its children are loaded.
parent 574ffb7f
No related branches found
No related tags found
No related merge requests found
<aspect-section *ngIf="isVisible" <aspect-section [class]="isVisible ? 'section' : 'hidden-section'"
class="section"
[class.static-section]="!section.dynamicPositioning" [class.static-section]="!section.dynamicPositioning"
[style.backgroundColor]="section.dynamicPositioning ? null : section.backgroundColor" [style.backgroundColor]="section.dynamicPositioning ? null : section.backgroundColor"
[style.minHeight]="section.dynamicPositioning ? 'auto' : section.height + 'px'" [style.minHeight]="section.dynamicPositioning ? 'auto' : section.height + 'px'"
......
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
z-index: 0; z-index: 0;
} }
.hidden-section{
display: none;
}
.static-section{ .static-section{
display: block; display: block;
} }
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