Skip to content

Commit

Permalink
scroll fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaTeMaTuK committed Jul 10, 2022
1 parent 14fe497 commit 3d49d4d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ npm start
| :------------- | :------ | :---------------------------------------------------------------------------------------------------- |
| viewMode | enum | Specifies the time scale. Hour, Quarter Day, Half Day, Day, Week(ISO-8601, 1st day is Monday), Month. |
| viewDate | date | Specifies display date and time for display. |
| preStepsCount | number | Specifies empty space before the fist task |
| locale | string | Specifies the month name language. Able formats: ISO 639-2, Java Locale. |
| rtl | boolean | Sets rtl mode. |

Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const App = () => {
};

return (
<div>
<div className="Wrapper">
<ViewSwitcher
onViewModeChange={viewMode => setView(viewMode)}
onViewListChange={setIsChecked}
Expand Down
3 changes: 3 additions & 0 deletions example/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.Wrapper {
margin-bottom: 2rem;
}
.ViewContainer {
list-style: none;
-ms-box-orient: horizontal;
Expand Down
6 changes: 3 additions & 3 deletions src/components/other/horizontal-scroll.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/*firefox*/
scrollbar-width: thin;
/*iPad*/
height: 1.1rem;
height: 1.2rem;
}
/*.scrollWrapper::-webkit-scrollbar {
.scrollWrapper::-webkit-scrollbar {
width: 1.1rem;
height: 1.1rem;
}
Expand All @@ -27,7 +27,7 @@
background-clip: padding-box;
}
@media only screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
}*/
}
.scroll {
height: 1px;
}
2 changes: 1 addition & 1 deletion src/components/other/vertical-scroll.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.scroll {
overflow: hidden auto;
width: 17px;
width: 1rem;
flex-shrink: 0;
/*firefox*/
scrollbar-width: thin;
Expand Down
2 changes: 1 addition & 1 deletion src/components/other/vertical-scroll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const VerticalScroll: React.FC<{
style={{
height: ganttHeight,
marginTop: headerHeight,
marginLeft: rtl ? "" : "-17px",
marginLeft: rtl ? "" : "-1rem",
}}
className={styles.scroll}
onScroll={onScroll}
Expand Down

0 comments on commit 3d49d4d

Please sign in to comment.