small tweaks

This commit is contained in:
Sercan Yemen 2017-09-20 10:06:28 +03:00
parent 6d20c1d62d
commit d6d74cb998
5 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,4 @@
import { sequence, trigger, stagger, animate, style, group, query, transition, keyframes, animateChild, state } from '@angular/animations';
// const query = (s, a, o = {optional: true}) => q(s, a, o);
import { sequence, trigger, animate, style, group, query, transition, animateChild, state } from '@angular/animations';
export class Animations
{

View File

@ -21,7 +21,7 @@ export class FuseIfOnDomDirective implements AfterContentChecked
{
setTimeout(() => {
this.viewContainer.createEmbeddedView(this.templateRef);
}, 0);
}, 350);
this.isCreated = true;
}
else if ( this.isCreated && !document.body.contains(this.element.nativeElement) )

View File

@ -35,12 +35,12 @@ export class FusePerfectScrollbarDirective implements OnInit, AfterViewInit, OnD
}
}
ngOnInit(): void
ngOnInit()
{
}
ngAfterViewInit(): void
ngAfterViewInit()
{
if ( this.isMobile || this.isDisableCustomScrollbars )
{
@ -55,7 +55,7 @@ export class FusePerfectScrollbarDirective implements OnInit, AfterViewInit, OnD
});
}
ngOnDestroy(): void
ngOnDestroy()
{
if ( !this.isInitialized )
{

View File

@ -72,11 +72,12 @@ export class FuseChatViewComponent implements OnInit, AfterViewInit
speed = speed || 400;
if ( this.directiveScroll )
{
this.directiveScroll.update();
setTimeout(() => {
this.directiveScroll.scrollToBottom(0, speed);
});
}
}
reply(event)

View File

@ -282,7 +282,6 @@
[xAxisLabel]="widget5.supporting.xAxisLabel"
[yAxisLabel]="widget5.supporting.yAxisLabel"
[curve]="widget5.supporting.curve">
>
</ngx-charts-area-chart>
</div>
</div>