MudBlazor / MudBlazor

Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
http://mudblazor.com
MIT License
8.21k stars 1.3k forks source link

MudTable cannot calculate width other than English. #4882

Closed SniperChan closed 2 years ago

SniperChan commented 2 years ago

Bug type

Component

Component name

MudTable

What happened?

When the HeaderContent is in English, the width of the table can be correctly recognized, and the horizontal scroll bar will automatically appear at the bottom. image

But when using other languages as the header, the scroll bar doesn't appear, and set HorizontalScrollbar="true" , doesn't take effect. All columns are tightly packed together. image

Expected behavior

Why does this happen, and how do other languages make columns auto-fit to width?

Reproduction link

https://try.mudblazor.com/snippet/GaQcErFRmjziWsCv

Reproduction steps

None

Relevant log output

No response

Version (bug)

6.0.11

Version (working)

No response

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

On what operating system are you experiencing the issue?

Windows

Pull Request

Code of Conduct

WangQuanKnight commented 2 years ago

I got the same problem

SniperChan commented 2 years ago

@WangQuanKnight it solved my problem. https://github.com/fullstackhero/blazor-wasm-boilerplate/issues/215