diff options
| author | ljungster <parkerljung@gmail.com> | 2022-04-28 10:18:53 -0400 |
|---|---|---|
| committer | ljungster <parkerljung@gmail.com> | 2022-04-28 10:18:53 -0400 |
| commit | 6f17d019715ee20a29588edac94c790e57628be9 (patch) | |
| tree | 345da8c9553c8bb51456da953f2963fc4b56ea49 /src/client/views/collections/CollectionNoteTakingViewDivider.tsx | |
| parent | 28e636ef7d7ed541dd735ec5cb9e29a6505ac787 (diff) | |
still struggling
Diffstat (limited to 'src/client/views/collections/CollectionNoteTakingViewDivider.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionNoteTakingViewDivider.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionNoteTakingViewDivider.tsx b/src/client/views/collections/CollectionNoteTakingViewDivider.tsx index 9b4af16ce..3655c3f38 100644 --- a/src/client/views/collections/CollectionNoteTakingViewDivider.tsx +++ b/src/client/views/collections/CollectionNoteTakingViewDivider.tsx @@ -5,6 +5,7 @@ interface DividerProps { index: number columnStartXCoords: number[] xMargin: number + setColumnStartXCoords: (newCoords: number[]) => void } export default class Divider extends React.Component<DividerProps>{ @@ -39,10 +40,11 @@ export default class Divider extends React.Component<DividerProps>{ // const xDividerPos = this.props.columnStartXCoords[this.props.index + 1] - 25 // const diff = xDividerPos - xPos // // make a copy of the array - // const colXCoords : number[] = [] - // this.props.columnStartXCoords.forEach(val => colXCoords.push(val)) - this.props.columnStartXCoords[this.props.index + 1] += movementX - console.log(this.props.columnStartXCoords) + const colXCoords : number[] = [] + this.props.columnStartXCoords.forEach(val => colXCoords.push(val)) + colXCoords[this.props.index + 1] += movementX + this.props.setColumnStartXCoords(colXCoords) + // console.log(this.props.columnStartXCoords) // this.props.columnStartXCoords = colXCoords // } } |
