components icon indicating copy to clipboard operation
components copied to clipboard

bug: (Mat-Table) multiple header rows and sticky creates a gap between columns

Open Woogielicious opened this issue 3 years ago • 1 comments
trafficstars

Description

I created a table with multiple headers, after set some columns to sticky i had a gap between one of my columns, it happens if you use multiple headers and sticky together. Multiple Headers works fine without sticky and also sticky works fine without using multiple headers.

image

Reproduction

Steps to reproduce:

  1. Add a multiple Header to a table
  2. add sticky to first and second column

Happens in any Version, i tried 14 and also 7.3.1 from table examples

Angular VS: 14 https://stackblitz.com/edit/angular-gvv7uw?file=src%2Fapp%2Ftable-basic-example.html,src%2Fapp%2Ftable-basic-example.ts

Angular VS: 7.3.1 https://stackblitz.com/edit/angular-material-table-multiple-header-rows-icpxfz?file=app%2Ftable-basic-example.html

Expected Behavior

There should be no gap between the columns

Actual Behavior

You get a big gap between Columns if you set some columns to sticky.

Environment

  • Angular: 14.0, 7.3.1
  • CDK/Material: 14.0, 7.3.1
  • Browser(s): Chrome
  • Operating System (e.g. Windows):

Woogielicious avatar Jul 05 '22 09:07 Woogielicious

Is there really no solution?!

Woogielicious avatar Jul 20 '22 00:07 Woogielicious

Seems to be a duplicate of #25396 - the scheduler is not running correctly

andrewseguin avatar May 07 '23 11:05 andrewseguin

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.