diff options
author | ljungster <parkerljung@gmail.com> | 2022-04-28 16:57:54 -0400 |
---|---|---|
committer | ljungster <parkerljung@gmail.com> | 2022-04-28 16:57:54 -0400 |
commit | f5216c401dcf1c27719fa8d43b3c0319afa7bc4b (patch) | |
tree | 3a57fb385cbdc7e7610a3a785bee83b8b74b10cd /src | |
parent | a71c320db74ff4b3eb66a4981c035ae423c437ef (diff) |
columns work!
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionNoteTakingView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionNoteTakingView.tsx b/src/client/views/collections/CollectionNoteTakingView.tsx index e7d7c15d2..3fc896e0a 100644 --- a/src/client/views/collections/CollectionNoteTakingView.tsx +++ b/src/client/views/collections/CollectionNoteTakingView.tsx @@ -72,7 +72,7 @@ export class CollectionNoteTakingView extends CollectionSubView<Partial<collecti //-------------------------------------------- Parker's Playground --------------------------------------------// // draggedDocBackgroundColors: string[] = [] - columnStartXCoords: number[] = [] + @observable columnStartXCoords: number[] = [] @computed get PanelWidth() {return this.props.PanelWidth()} @computed get maxColWdith() {return this.props.PanelWidth() - 2 * this.xMargin;} // dividerXCoords: number[] = [] @@ -307,9 +307,9 @@ export class CollectionNoteTakingView extends CollectionSubView<Partial<collecti if (existingHeader) { const index = this.columnHeaders.indexOf(existingHeader) if (this.columnHeaders.length == 1) { - return this.props.PanelWidth() - colStartXCoords[index] - 4 * this.gridGap - 100 + return this.props.PanelWidth() - colStartXCoords[index] - 4 * this.gridGap - 20 } - return colStartXCoords[index + 1] - colStartXCoords[index] - 2 * this.gridGap - 100 + return colStartXCoords[index + 1] - colStartXCoords[index] - 2 * this.gridGap - 20 } return 1000; } |