Skip to content

Header renderer with text_wrap=True removes the sort/filter (column menu) icon #568

Description

@33nosmo33

This occurs on both versions 1.3 and 1.4

When enabling text_wrap=True on a header renderer, the column header stops showing the small sort/filter column menu icon (bottom-right chevron). The icon is still clickable, just invisible. As well as being a bit weird, this means that there is also no visual indicator that a column has been sorted/filtered.

import ipydatagrid as ipd
import pandas as pd

ipd.DataGrid(
    pd.DataFrame({"A long column name": [1, 2, 3]}),
    base_column_size=100,
    base_column_header_size=50,
    header_renderer=ipd.TextRenderer(
        text_wrap=True,
        vertical_alignment='top'
    )
)

Please can we ensure that the header menu icon is still drawn even when custom header renderers with wrapping is used?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions