Popover Animation

This commit is contained in:
NejcZdovc
2016-11-28 10:05:49 +01:00
committed by József Farkas
parent 996ad59dc4
commit e3f8ca4357
5 changed files with 62 additions and 21 deletions

View File

@@ -9,6 +9,7 @@ svg-keyboard {
position: absolute;
left: 0;
transform: translateX(-101%);
user-select: none;
}
.keyboard-slider {

View File

@@ -108,9 +108,14 @@ export class SvgKeyboardWrapComponent implements OnInit, OnChanges {
private keyElement: HTMLElement;
@HostListener('window:resize')
onClick() {
this.wrapPosition = this.wrapHost.getBoundingClientRect();
this.keyPosition = this.keyElement.getBoundingClientRect();
onResize() {
if (this.wrapHost) {
this.wrapPosition = this.wrapHost.getBoundingClientRect();
}
if (this.keyElement) {
this.keyPosition = this.keyElement.getBoundingClientRect();
}
}
constructor(private store: Store<AppState>, private mapper: MapperService, private element: ElementRef) {