Skip to content

Commit

Permalink
fix(): paging issue with select width
Browse files Browse the repository at this point in the history
  • Loading branch information
emoralesb05 committed Aug 29, 2017
1 parent b4a06c8 commit d088a87
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.
46 changes: 23 additions & 23 deletions src/app/components/components/paging/paging.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,29 +183,29 @@
<md-tab>
<ng-template md-tab-label>Demo</ng-template>
<md-card-content>
<p>Change Event: </p>
<div>
<p>Page Size: {{eventInput?.pageSize || '100'}}</p>
<p>Page: {{eventInput?.page || '1'}} of {{eventInput?.maxPage || '14'}}</p>
<p>Rows: {{eventInput?.fromRow || '1'}} to {{eventInput?.toRow || '100'}}</p>
</div>
<p>Total: {{eventInput?.total || '1345'}}</p>
</md-card-content>
<md-divider></md-divider>
<td-paging-bar #pagingBarInput pageLinkCount="5" [firstLast]="false" [pageSize]="100" [total]="1345" (change)="changeInput($event)">
<p hide-xs>Go to:</p>
<md-input-container>
<input #goToInput
mdInput
type="number"
[min]="1"
[max]="pagingBarInput.maxPage"
[value]="pagingBarInput.page"
(blur)="goToInput.value = pagingBarInput.page"
(keyup.enter)="pagingBarInput.navigateToPage(goToInput.value); goToInput.value = pagingBarInput.page"/>
</md-input-container>
<span hide-xs>{{pagingBarInput.range}} of {{pagingBarInput.total}}</span>
</td-paging-bar>
<p>Change Event: </p>
<div>
<p>Page Size: {{eventInput?.pageSize || '100'}}</p>
<p>Page: {{eventInput?.page || '1'}} of {{eventInput?.maxPage || '14'}}</p>
<p>Rows: {{eventInput?.fromRow || '1'}} to {{eventInput?.toRow || '100'}}</p>
</div>
<p>Total: {{eventInput?.total || '1345'}}</p>
</md-card-content>
<md-divider></md-divider>
<td-paging-bar #pagingBarInput pageLinkCount="5" [firstLast]="false" [pageSize]="100" [total]="1345" (change)="changeInput($event)">
<p hide-xs>Go to:</p>
<md-input-container>
<input #goToInput
mdInput
type="number"
[min]="1"
[max]="pagingBarInput.maxPage"
[value]="pagingBarInput.page"
(blur)="goToInput.value = pagingBarInput.page"
(keyup.enter)="pagingBarInput.navigateToPage(goToInput.value); goToInput.value = pagingBarInput.page"/>
</md-input-container>
<span hide-xs>{{pagingBarInput.range}} of {{pagingBarInput.total}}</span>
</td-paging-bar>
</md-tab>
<md-tab>
<ng-template md-tab-label>Code</ng-template>
Expand Down
4 changes: 0 additions & 4 deletions src/platform/core/paging/paging-bar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
min-width: 44px;
font-size: 12px;
}
.mat-select-value {
top: auto;
position: static;
}
.mat-select-underline {
display: none;
}
Expand Down

0 comments on commit d088a87

Please sign in to comment.