diff --git a/example/src/App.tsx b/example/src/App.tsx index c2ab602eb..f3cf87666 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Task, ViewMode, Gantt } from "gantt-task-react"; +import {Task, ViewMode, Gantt} from "gantt-task-react"; import { ViewSwitcher } from "./components/view-switcher"; import { getStartEndDateForProject, initTasks } from "./helper"; import "gantt-task-react/dist/index.css"; @@ -101,6 +101,7 @@ const App = () => { onExpanderClick={handleExpanderClick} listCellWidth={isChecked ? "155px" : ""} ganttHeight={300} + ganttWidth={1000} columnWidth={columnWidth} /> diff --git a/example/src/components/view-switcher.tsx b/example/src/components/view-switcher.tsx index 42f736016..a7227c913 100644 --- a/example/src/components/view-switcher.tsx +++ b/example/src/components/view-switcher.tsx @@ -56,7 +56,7 @@ export const ViewSwitcher: React.FC = ({ className="Button" onClick={() => onViewModeChange(ViewMode.QuarterYear)} > - Year + Quarter of year