Multi-stream support (in display)

This commit is contained in:
Nicolas Constant 2018-03-16 19:57:14 -04:00
parent 68153225bc
commit f07d2308ee
5 changed files with 25 additions and 4 deletions

View File

@ -6,8 +6,11 @@ app-streams-main-display {
position: absolute;
top: 0;
right: 0;
bottom: 0;
bottom: 30px;
left: 50px;
overflow-y: hidden;
overflow-x: auto;
white-space: nowrap;
}
app-streams-selection-footer {

View File

@ -1,6 +1,6 @@
#mam-stream-column {
width: 300px;
height: calc(100% - 30px);
height: calc(100%);
background-color: aqua;

View File

@ -1,8 +1,19 @@
#mam-main-display {
width: calc(100%);
height: calc(100%);
height: calc(100%);
overflow-x: auto;
overflow-y: hidden;
background: blue;
/*outline: 1px dotted red;*/
}
.mam-stream-column {
height: calc(100%);
display: inline-block;
overflow-x: hidden;
overflow-y: hidden;
white-space: normal;
margin-left: 5px;
}

View File

@ -1,4 +1,6 @@
<div id="mam-main-display">
<app-stream></app-stream>
<div *ngFor="let s of streams" class="mam-stream-column">
<app-stream></app-stream>
</div>
</div>

View File

@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { Stream } from 'stream';
@Component({
selector: 'app-streams-main-display',
@ -6,10 +7,14 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./streams-main-display.component.css']
})
export class StreamsMainDisplayComponent implements OnInit {
streams: Stream[] = [];
constructor() { }
ngOnInit() {
for (let i = 0; i < 3; i++) {
this.streams.push(new Stream());
}
}
}