From 8abf2d620e72c1d2b1ab805d0f2a8a459d4d51a4 Mon Sep 17 00:00:00 2001 From: ljungster Date: Fri, 3 Jun 2022 12:55:59 -0500 Subject: fixed not showing columns unless doc already added --- src/client/views/collections/CollectionNoteTakingView.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionNoteTakingView.tsx b/src/client/views/collections/CollectionNoteTakingView.tsx index 50390957a..1e3a27d24 100644 --- a/src/client/views/collections/CollectionNoteTakingView.tsx +++ b/src/client/views/collections/CollectionNoteTakingView.tsx @@ -82,15 +82,9 @@ export class CollectionNoteTakingView extends CollectionSubView(); - // this.state = { - // columnStartXCoords: [0] - // } - this.columnStartXCoords = [0] + this.layoutDoc._columnHeaders = new List([new SchemaHeaderField('New Column')]); + this.columnStartXCoords = [0] } else { - //TODO instantiate columnStartXCoords and dividerXCoords const numHeaders = this.columnHeaders.length this.resizeColumns(numHeaders) } -- cgit v1.2.3-70-g09d2