Skip to content

Commit 86d0f29

Browse files
fix column disappear on resize
1 parent dcffcbe commit 86d0f29

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,6 @@ function ResizeableTable<RecordType extends object>(props: CustomTableProps<Reco
553553
} else {
554554
allColumnFixed = false;
555555
}
556-
if (allColumnFixed && index === props.columns.length - 1) {
557-
// all column fixed, the last column fill extra space
558-
colWidth = "auto";
559-
minWidth = resizeWidth;
560-
}
561556
return {
562557
...restCol,
563558
RC_TABLE_INTERNAL_COL_DEFINE: {
@@ -583,14 +578,6 @@ function ResizeableTable<RecordType extends object>(props: CustomTableProps<Reco
583578
width: resizeWidth,
584579
title: col.titleText,
585580
viewModeResizable: props.viewModeResizable,
586-
// onResize: (width: number) => {
587-
// if (width) {
588-
// setResizeData({
589-
// index: index,
590-
// width: width,
591-
// });
592-
// }
593-
// },
594581
onResize: (width: React.SyntheticEvent) => {
595582
if (width) {
596583
setResizeData({

0 commit comments

Comments
 (0)