You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The header does not correctly expand to accomodate content where numberOfLines is greater than 1.
Expected behaviour
I would expect the header to expand and show the contents wrapped correctly.
How to reproduce?
Given the following code, specifically the <DataTable.Title numberOfLines={2} style={{flex: 1}} numeric>...</DataTable.Title>, i would expect the title to appear over two lines and the height of the <DataTable.Header> to expand to accomodate the additional lines. However, this is not the case.
It could be i have done something else wrong, in which case can someone please let me know how i should have styled my components to prevent this issue.
The text was updated successfully, but these errors were encountered:
Current behaviour
The header does not correctly expand to accomodate content where
numberOfLines
is greater than 1.Expected behaviour
I would expect the header to expand and show the contents wrapped correctly.
How to reproduce?
Given the following code, specifically the
<DataTable.Title numberOfLines={2} style={{flex: 1}} numeric>...</DataTable.Title>
, i would expect the title to appear over two lines and the height of the<DataTable.Header>
to expand to accomodate the additional lines. However, this is not the case.Preview
Actual
Expected:
Cause
It appears this issue is caused by the default style applied to the
DataTableHeader
.I.e. The style with the problem:
The style which fixes the problem:
It could be i have done something else wrong, in which case can someone please let me know how i should have styled my components to prevent this issue.
The text was updated successfully, but these errors were encountered: