Skip to content

Commit ddf99a0

Browse files
committed
fix: 🐛 columnWidth
1 parent cf1df7c commit ddf99a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/edit_area/edit_area.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const EditArea = React.forwardRef<EditAreaState, EditAreaProps>((props, r
182182
rowCount={heights.length}
183183
ref={gridRef}
184184
cellRenderer={cellRenderer}
185-
columnWidth={Math.max(scaleCount * scaleWidth, width)}
185+
columnWidth={Math.max(scaleCount * scaleWidth + startLeft, width)}
186186
width={width}
187187
height={height}
188188
rowHeight={({ index }) => heights[index] || rowHeight}

src/components/time_area/time_area.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const TimeArea: FC<TimeAreaProps> = ({ setCursor, hideCursor, scale, scal
5656
<>
5757
<Grid
5858
ref={gridRef}
59-
columnCount={showUnit ? scaleCount * scaleSplitCount : scaleCount}
59+
columnCount={showUnit ? scaleCount * scaleSplitCount + 1 : scaleCount}
6060
columnWidth={getColumnWidth}
6161
rowCount={1}
6262
rowHeight={height}

0 commit comments

Comments
 (0)