I also mentioned this issue on GitHub but nobody answered yet, so I'm trying to get some help here:
I used Turbo-Table with resizable columns and with [scrollable] property set to false and my table was created with unnecessary vertical and horizontal scrollbars on Microsoft Edge and Internet Explorer 11 browsers (Chrome and FireFox handled that correctly). Does anyone has an idea how to get rid of these redundant scrollbars?
Some Environment details:
PrimeFaces version: 5.2.4 (Also occurs on last version (6-Alpha))
Browsers: Microsoft Edge 42.17134.1.0, Microsoft IE11.0.65 (Works well on Chrome and FireFox)
Steps to reproduce:
Build a simple text data table, with about 10 rows, with resizeable columns and [scrollable]="false"
Code is below:
app.component.html
<p-table [value]="cars" [resizableColumns]="true" [scrollable]="false">
<ng-template pTemplate="header">
<tr>
<th *ngFor="let col of cols" pResizableColumn>
{{col.header}}
</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-car>
<tr>
<td *ngFor="let col of cols" class="ui-resizable-column">
{{car[col.field]}}
</td>
</tr>
</ng-template>
</p-table>
app.component.ts
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styles: []
})
export class AppComponent implements OnInit {
constructor() {
}
cars: any[];
cols: any[];
ngOnInit() {
this.cars = [
{vin: '11', year: '1111', brand: 'dddd', color: 'blue', madeIn: 'Japan'},
{vin: '12', year: '1112', brand: 'aaaa', color: 'green', madeIn: 'Germany'},
{vin: '13', year: '1113', brand: 'cccc', color: 'yellow', madeIn: 'Japan'},
{vin: '14', year: '1114', brand: 'dddd', color: 'blue', madeIn: 'Japan'},
{vin: '15', year: '1115', brand: 'aaaa', color: 'green', madeIn: 'Korea'},
{vin: '16', year: '1116', brand: 'cccc', color: 'black', madeIn: 'China'},
{vin: '17', year: '1117', brand: 'dddd', color: 'blue', madeIn: 'USA'},
{vin: '18', year: '1118', brand: 'aaaa', color: 'green', madeIn: 'Japan'},
{vin: '19', year: '1119', brand: 'cccc', color: 'grey', madeIn: 'Germany'},
{vin: '20', year: '1120', brand: 'dddd', color: 'blue', madeIn: 'France'},
];
this.cols = [
{field: 'vin', header: 'Vin'},
{field: 'year', header: 'Year'},
{field: 'brand', header: 'Brand'},
{field: 'color', header: 'Color'},
{field: 'madeIn', header: 'Made In'}
];
}
}
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {TableModule} from 'primeng/table';
import {AppComponent} from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
TableModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }