File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
packages/main/src/components/AnalyticalTable Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const Resizer = (props) => {
13
13
( e ) => {
14
14
e . stopPropagation ( ) ;
15
15
const pageX = e . pageX ;
16
- const newWidth = Math . max ( parentWidth . current + pageX - startX . current , column . minWidth ) ;
16
+ const newWidth = Math . round ( Math . max ( parentWidth . current + pageX - startX . current , column . minWidth ) ) ;
17
17
onColumnSizeChanged ( {
18
18
column,
19
19
width : newWidth
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export const ColumnHeader: FC<ColumnHeaderProps> = (props) => {
132
132
onGroupBy = { onGroupBy }
133
133
/>
134
134
) : (
135
- openBy
135
+ < div style = { { ... innerStyle , display : 'inline-block' , cursor : 'auto' } } > { openBy } </ div >
136
136
) }
137
137
{ isResizable && < Resizer { ...props } /> }
138
138
</ div >
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const useWindowResize = () => {
6
6
const [ tableWidth , setTableWidth ] = useState ( 0 ) ;
7
7
const onWindowResize = useCallback ( ( ) => {
8
8
if ( headerRef . current ) {
9
- setTableWidth ( headerRef . current . scrollWidth ) ;
9
+ setTableWidth ( headerRef . current . getBoundingClientRect ( ) . width ) ;
10
10
}
11
11
} , [ setTableWidth , headerRef . current ] ) ;
12
12
You can’t perform that action at this time.
0 commit comments