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.

mat-table: table not utilizing full width on Firefox or Edge

See original GitHub issue

Bug, 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
crisbetocommented, May 22, 2018

@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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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