mat-table: table not utilizing full width on Firefox or Edge
See original GitHub issueBug, feature request, or proposal:
Tables on the docs site do not appear correctly on Firefox or Edge. The tables shrink -> https://material.angular.io/components/table/overview.
What is the expected behavior?
Table should behave as in the previous version
What is the current behavior?
Tables appear Shrinked on Firefox or Edge Browser
What are the steps to reproduce?
https://stackblitz.com/angular/oavbpvvoxjo?file=app%2Ftable-basic-example.ts Open in Firefox or edge
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
6
Is there anything else we should know?
Inserting the following css resolves the issue. But, should we add this additional css in the app?
.example-container > table { width: 100%; }
https://stackblitz.com/edit/angular-elthta?file=app%2Ftable-basic-example.css
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
mat-table directive is not rendering at full width - Stack Overflow
The solution showed itself when I added Bootstrap's table class. I assumed a table by default would fill the parent container.
Read more >table-layout - CSS: Cascading Style Sheets - MDN Web Docs
Cells in subsequent rows do not affect column widths. Under the "fixed" layout method, the entire table can be rendered once the first...
Read more >How to implement fullscreen mode in Angular? | by Vikas Kohli
If it is in fullscreen mode, then fullscreen_exist icon and if it is not in fullscreen, then we can show fullscreen icon. In...
Read more >Table | Angular Material
The mat-table provides a Material Design styled data-table that can be used to display rows of data. This table builds on the foundation...
Read more >Angular Material Tutorial with examples
Install Angular Material and Angular CDK modules by using below node command. ... Table, <table mat-table [dataSource]="dataSource"> <ng-container ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kevincaradant we had a very similar issue that for which we’ve released a fix a while ago. Trying out our demo app against IE11 still shows it working correctly, but I can also reproduce the problem in your example. It would be best if you submitted another issue.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.