Annoying horizontal scrollbar, why horizontal gets shown when it should not?
See original GitHub issueHi, why on earth horozintal bar keeps showing it’s ugly face when it should freakin not?!
<mat-card> <mat-card-content> <div fxLayout="column"> <div fxLayout="row"> <mat-form-field style="width: 200px"> <input matInput type="text" placeholder="search" [(ngModel)]="filterValue" (keyup)='updateFilter($event)'> <button mat-button *ngIf="filterValue" matSuffix mat-icon-button aria-label="Clear" (click)="filterValue=''"> <mat-icon>close</mat-icon> </button> </mat-form-field> </div> <div fxLayout="row"> <div fxFlex="40" fxFlex.lt-sm="100" style="border-right: 1px solid gainsboro;"> <ngx-datatable #contactsTable class='material server-scrolling-demo' [rows]='rows' [columnMode]="'force'" [headerHeight]="headerHeight" [footerHeight]="footerHeight" [rowHeight]="rowHeight" [loadingIndicator]="isLoading" [selected]="selected" [selectionType]="'single'" [scrollbarV]="true" (scroll)="onScroll($event.offsetY)" (select)="onSelect($event)"> <ngx-datatable-column name="Picture"> <ng-template let-value="value" ngx-datatable-cell-template> <mat-icon>account_circle</mat-icon> </ng-template> </ngx-datatable-column> <ngx-datatable-column name="FullName"> <ng-template let-value="value" ngx-datatable-cell-template> {{value}} </ng-template> </ngx-datatable-column> </ngx-datatable> </div> </div> </div> </mat-card-content> </mat-card>
I’m submitting a … (check one with “x”)
[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior Horizontal scrollbar keeps showing on every single table.
Expected behavior Horizontal scrollbar should not get shown
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment: It makes table look ugly.
-
Table version: “@swimlane/ngx-datatable”: “^11.3.2”
-
Angular version: 6.0.3
-
Browser: Chrome 69
-
Language: TypeScript 2.7.2
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top GitHub Comments
this is my workaround. the horizontal overflow will show if necessary.
i’m facing same issue
this is column im passing to datatable : this.logicChannelCols = [ { name: ‘Name’, prop: ‘name’, sortable: true, minWidth: 50, maxWidth: 5000, width: 100}, { name: ‘Status’, prop: ‘switchControl’, cellTemplate: this.switchcontrolT, sortable: false, minWidth: 50, maxWidth: 5000, width: 100 }, { prop: ‘colchooser’, name: ‘colchooser’, sortable: false, minWidth: 70, maxWidth: 70, width: 70, frozenRight: true, resizeable: false, canAutoResize: false }, ];
why horizontal scroll bar is always displayed !! if i set scrollbarV =true horizontal scroll will disappear the but the problem is page limit will not work in that case ,plz help me to solve this issue
thanks,