Skip to content

Commit

Permalink
Timeline: fixed passing className in TimelineGrid; fixed visibility o…
Browse files Browse the repository at this point in the history
…f bottom border in years scale
  • Loading branch information
Yakov Zhmurov authored and AlekseyManetov committed Oct 23, 2024
1 parent 70ba243 commit f2db0c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions uui-timeline/src/TimelineGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export function TimelineGrid({

return (
<TimelineCanvas
className={ restProps.className }
draw={ restProps.draw ?? draw }
canvasHeight={ canvasHeight }
timelineController={ timelineController }
Expand Down
4 changes: 2 additions & 2 deletions uui-timeline/src/TimelineScale.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ export function TimelineScale({
const canvasHeight = 60;
context.clearRect(0, 0, t.widthMs, canvasHeight);

drawScaleBottomBorder({ context, canvasHeight, timelineTransform: t, bottomBorderColor });

const fonts = { currentPeriodFont, periodFont, meridiemFont };
const commonProps = {
context,
Expand Down Expand Up @@ -251,6 +249,8 @@ export function TimelineScale({
...timelineScale.getYearsScaleRange(),
...withGridLinesProps,
});

drawScaleBottomBorder({ context, canvasHeight, timelineTransform: t, bottomBorderColor });
};

useEffect(() => {
Expand Down

0 comments on commit f2db0c8

Please sign in to comment.