[Table] Table Width Render Different Under Chrome 90 And Chrome 91
Có thể bạn quan tâm
- Notifications You must be signed in to change notification settings
- Fork 50.4k
- Star 92.9k
- Code
- Issues 1.2k
- Pull requests 85
- Discussions
- Actions
- Projects 3
- Wiki
- Security
- Insights
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Sign up for GitHubBy clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jump to bottom [Table] Table width render different under Chrome 90 and Chrome 91 #30755 Closed 1 task done chiaweilee opened this issue May 28, 2021 · 11 comments Closed 1 task done [Table] Table width render different under Chrome 90 and Chrome 91 #30755 chiaweilee opened this issue May 28, 2021 · 11 commentsComments
Copy link Contributorchiaweilee commented May 28, 2021 • edited Loading
Reproduction linkSteps to reproduce
What is expected?Same result What is actually happening?Chrome 90
Chrome 91
| ||||||||||
The text was updated successfully, but these errors were encountered: |
- 👍 5 reactions
flute commented May 28, 2021
+1 |
Sorry, something went wrong.
Copy linkHarveyZgit commented May 28, 2021 • edited Loading
+1 Chrome 90 😀Chrome 91 😰 |
Sorry, something went wrong.
Copy linkjinmmd commented May 30, 2021
I guess it's because chrome 91: supports min-width. before 91 version, colgroup min-width is not effect, I suggest you can set a shorter col width. |
Sorry, something went wrong.
Copy link Contributoritibbers commented May 30, 2021
+1, this global css may temporarily solve the problem. colgroup { display: table-column; } |
Sorry, something went wrong.
Copy linkhunter2009 commented May 30, 2021
More detail in this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1214190&q=table%20width&can=2
|
- 👍 1 reaction
Sorry, something went wrong.
Copy linkatotic commented May 30, 2021
I am the Chrome developer that implemented the new tables. This is the problem I saw reported: <Table columns={ [ {... width: 200 } ] }generates following CSS: <col style="width: 200px; min-width: 200px;">The problem is min-width CSS property. Before Chrome 91, min-width was ignored on COL elements. 91 no longer ignores it. Is there a reason why framework is generating both width and min-width CSS properties? Can you fix it so it only generates width? Until this is fixed, this global CSS will force Chrome 91 to ignore min-width on table columns: colgroup { min-width: auto !important;} col { min-width: auto !important; }I think the fix suggested above is incorrect. It makes COLGROUP behave as if it was a COL colgroup { display: table-column; } |
- 👍 18 reactions
Sorry, something went wrong.
Copy link MemberzombieJ commented May 31, 2021
Let me check if we could remove min-width. |
Sorry, something went wrong.
zombieJ mentioned this issue May 31, 2021 fix: rm useless min-width react-component/table#626 Merged Copy link MemberzombieJ commented May 31, 2021 • edited Loading
Seems min-width is design to force column get at least configured width. But this code never work as expect, let's remove it first. |
- 👍 3 reactions
Sorry, something went wrong.
zombieJ closed this as completed May 31, 2021 Copy link MemberzombieJ commented May 31, 2021
+ rc-table@7.15.2 |
- 👍 1 reaction
Sorry, something went wrong.
Copy linksmithyj commented Jun 1, 2021
这个Bug是我反馈给Chrome的😂 |
- ❤️ 4 reactions
Sorry, something went wrong.
Copy linkvclau-1996 commented Jun 10, 2021
+1 |
Sorry, something went wrong.
BoyYangzai mentioned this issue Jun 9, 2023 Table does not respect column width on limiting container width after upgrading from 4.10.0 to 4.18.0 #42931 Closed Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Assignees No one assigned Labels None yet Projects None yet Milestone No milestone DevelopmentNo branches or pull requests
10 participants You can’t perform that action at this time.Từ khóa » Html Colgroup Max Width
-
Table
Min-max-width Ignored - Stack Overflow -
: The Table Column Group Element - MDN Web Docs -
HTML : Table Colgroup Min-max-width Ignored - YouTube
-
HTML DOM Style MaxWidth Property - W3Schools
-
Fixed Layout Table Ignores Min-width Of Cells - HTML & CSS - SitePoint
-
Not Able To Set Width Using ColGroup When Table-layout Is Fixed
-
How To Get A Table To Be Fluid Up To A Max Width - WebmasterWorld
-
Grid System - Bootstrap
-
Chapter 3. How To Specify Tables And Columns Width
-
How To Code Outlook-Proof Emails - Chuk Moran - Medium
-
Tables In HTML Documents
-
17 Tables - W3C