angular / angular/components

bug(material/table): fixedLayout not applied

Đang mở
#26,565 9 bình luận 4 reaction 0 người được giao Xem trên GitHub
area: material/table P3
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

### Is this a regression?

- [X] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

14.2.0

### Description

If the attribute fixedLayout is set, the styling is not applied. The corresponding css classes are, but the style not. Table layout is always set to auto.

### Reproduction

Steps to reproduce:
1. set fixedLayout to true
2. Check the style of table

### Expected Behavior

The table-layout: fixed style is applied

### Actual Behavior

The table-layout: auto style is applied, wenn fixedLayout is true

### Environment

- Angular:15.1.1
- CDK/Material:15.1.1
- Browser(s):Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): MacOs

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Issue không nêu tên file hoặc test nào. Hãy tái hiện vấn đề trong Angular 15.1.1 với một Material table và đặt fixedLayout thành true, sau đó lần theo phần triển khai của table và style của nó; hoàn thành khi table sử dụng table-layout: fixed thay vì auto và hành vi hồi quy hiện có được khôi phục.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
50/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.