Skip to content

fix: FluentDataGrid column header title truncation in 4.11.4+ #3608

@philliphoff

Description

@philliphoff

🐛 Bug Report

Starting with 4.11.4 (up to at least 4.11.7), a FluentDataGrid with a sortable TemplateColumn with <ColumnOptions> will result in a truncated, fixed-width, column header title, even when there is sufficient space for the entire title. Resizing the grid will not resize the column header title.

💻 Repro or Code Sample

See the Weather page of the attached repro created from the FluentUI project template.

Archive.zip

Image

🤔 Expected Behavior

The column header title should expand to fill the header width. Truncation of the title text should occur only if there is insufficient space for the text

😯 Current Behavior

The column header title is always truncated, regardless of the width of the column.

💁 Possible Solution

Our solution was to revert back to 4.11.3.

🔦 Context

We had attempted to pull forward the FluentUI library to 4.11.7 from 4.11.3 after which we observed the issue. Reverting back to 4.11.3 resolved the issue. The issue appears to start with 4.11.4.

🌍 Your Environment

  • OS & Device: MacOS
  • Browser: Edge
  • .NET and Fluent UI Blazor library Version: .NET 9.0 and FluentUI 4.11.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions