Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

fix row selection alignment #571

Merged
merged 2 commits into from
Sep 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

[#567](https://github.com/plotly/dash-table/issues/567)
- Add support for missing `border-radius` in style_** props
- Fix table's inner vs. outer container styling
- Fix table's inner vs. outer container styling

[#18](https://github.com/plotly/dash-table/issues/18)
- Fix row selection vertical and horizontal alignment

## [4.2.0] - 2019-08-27
### Added
Expand Down
3 changes: 2 additions & 1 deletion src/dash-table/derived/cell/operations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ function rowSelectCell(idx: number, rowSelectable: Selection, selectedRows: numb
return (<td
key='select'
className='dash-select-cell'
style={{ width: `30px`, maxWidth: `30px`, minWidth: `30px` }}
style={{ width: `30px`, maxWidth: `30px`, minWidth: `30px`, textAlign: 'center' }}
>
<input
type={rowSelectable === 'single' ? 'radio' : 'checkbox'}
style={{ verticalAlign: 'middle' }}
name='row-select'
checked={R.contains(idx, selectedRows)}
onChange={() => {
Expand Down