question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Datatable width resize problem. datatable-scroller and datatable-header-inner does not resize after initial load

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting

Current behavior datatable-scroller and datatable-header-inner(also it’s children) doesn’t resize on width after datatable inital load

Expected behavior They should resize… https://cl.ly/1U090c3Q0X2S

Reproduction of the problem You can represent the problem anywhere.

What is the motivation / use case for changing the behavior? This is a bug.

Please tell us about your environment: macOS Sierra, Chrome Version 60.0.3112.101

  • Table version: 9.3.0, 10.0.5

  • Angular version: 4.3.3

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:22
  • Comments:24

github_iconTop GitHub Comments

15reactions
GevorgGabrielyancommented, Nov 5, 2018

Adding a simple css rule for .datatable-scroll display: inherit !important; works for me

15reactions
ahmetacer5commented, Apr 1, 2018

@webmatrixxxl Hi i have simple solution for this. You just need to trigger window resize event.

window.dispatchEvent(new Event('resize'));

Read more comments on GitHub >

github_iconTop Results From Across the Web

Header does not resize when using scrollX - DataTables
My webpage has a left menu that can be hidden. The datatable is within a div which resizes to fill the screen as...
Read more >
datatable jquery - table header width not aligned with body width
But when I click on the header, it is getting aligned with the body width but even then there is some light misalignment....
Read more >
jQuery DataTables: Column width issues with Bootstrap tabs
Provides solutions to common problems with incorrect column widths for a table using jQuery DataTables and Bootstrap tabs.
Read more >
Sizing and Resizing of DataTable, Configuration Webix Docs
The usage of string values is incorrect and will cause errors in the sizing ... If there's more space initially or after resizing,...
Read more >
DataTable Width & Column Width - Dash Plotly
Without fixed column widths, the table will dynamically resize the columns depending on the width of the data that is displayed. Limitations. Percentage-based ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found