Implementation of the space

This commit is contained in:
NejcZdovc
2016-11-29 06:22:47 +01:00
committed by József Farkas
parent 96e80ad7ef
commit 31b3aae64b
6 changed files with 26 additions and 6 deletions

View File

@@ -1,6 +1,10 @@
:host {
width: 100%;
display: block;
&.space {
margin-bottom: 405px;
}
}
svg-keyboard {

View File

@@ -2,6 +2,7 @@ import {
ChangeDetectionStrategy,
Component,
ElementRef,
HostBinding,
HostListener,
Input,
OnChanges,
@@ -107,6 +108,10 @@ export class SvgKeyboardWrapComponent implements OnInit, OnChanges {
private wrapHost: HTMLElement;
private keyElement: HTMLElement;
@HostBinding('class.space') get space() {
return this.popoverEnabled;
}
@HostListener('window:resize')
onResize() {
if (this.wrapHost) {