Skip to content

Commit

Permalink
fix: PRevent column width to be set in stone it not resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Jun 10, 2021
1 parent db85a06 commit 6c430c5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/MTableHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ export function MTableHeader({ onColumnResized, ...props }) {
};

const getCellStyle = (columnDef) => {
const width = CommonValues.reducePercentsInCalc(
columnDef.tableData.width,
props.scrollWidth
);
const width = props.options.columnResizable
? CommonValues.reducePercentsInCalc(
columnDef.tableData.width,
props.scrollWidth
)
: columnDef.tableData.width;
const style = {
...props.headerStyle,
...columnDef.headerStyle,
Expand Down

0 comments on commit 6c430c5

Please sign in to comment.