Merged in development (pull request #59)

[HIMA-96] - reset scroll on page navigation
This commit is contained in:
Peter Skrlj
2019-02-14 09:01:12 +00:00
3 changed files with 7 additions and 3 deletions

View File

@@ -27,11 +27,13 @@ const routes: Routes = [
{ path: 'article-scan', component: BarcodeSearchComponent },
{ path: 'debug', loadChildren: './modules/debug/debug.module#DebugModule' },
{ path: 'cart', component: CartReviewComponent },
{ path: 'cart-confirmation', component: CartConfirmationComponent },
{ path: 'cart-confirmation', component: CartConfirmationComponent }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
imports: [
RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' })
],
exports: [RouterModule]
})
export class AppRoutingModule {}

View File

@@ -1,5 +1,5 @@
<div class="customer-search-result-container">
<app-loading *ngIf="users.length == 0" loading="true"></app-loading>
<app-loading *ngIf="users?.length == 0" loading="true"></app-loading>
<div class="user" *ngFor="let user of users">
<div class="user-info-container">
<div class="user-info">

View File

@@ -7,6 +7,8 @@
flex-direction: column;
justify-content: flex-start;
align-items: center;
height: calc(100% - 55px);
overflow: scroll;
.user {
background-color: #ffffff;