Skip to content

Commit

Permalink
fix: datatable.title cell height multiple of numberOfLines
Browse files Browse the repository at this point in the history
Without this, it does not appear the numberOfLines prop has an effect, as noticed in callstack#848 and callstack#863
With this, it appears to work exactly as expected.
  • Loading branch information
mikehardy authored Dec 17, 2021
1 parent cca9732 commit 4f5a1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataTable/DataTableTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const styles = StyleSheet.create({
},

cell: {
height: 24,
height: 24 * numberOfLines,
lineHeight: 24,
fontSize: 12,
fontWeight: '500',
Expand Down

0 comments on commit 4f5a1d3

Please sign in to comment.