@@ -941,8 +941,8 @@ describe("Rows", () => {
941941 } ) ;
942942 const newDimensions = model . getters . getMainViewportRect ( ) ;
943943 expect ( newDimensions ) . toMatchObject ( {
944- width : 192 , // col size + 1 DEFAULT_CELL_WIDTH for spacing
945- height : 170 , // sum of row sizes + 1 DEFAULT_CELL_HEIGHT + 5px for spacing + 46px for adding rows footer
944+ width : DEFAULT_CELL_WIDTH , // sum of col sizes
945+ height : 142 , // sum of row sizes + 46px for adding rows footer
946946 } ) ;
947947 } ) ;
948948 test ( "On addition after" , ( ) => {
@@ -963,8 +963,8 @@ describe("Rows", () => {
963963 } ) ;
964964 const newDimensions = model . getters . getMainViewportRect ( ) ;
965965 expect ( newDimensions ) . toMatchObject ( {
966- width : 192 , // col size + 1 DEFAULT_CELL_WIDTH for spacing
967- height : 190 , // sum of row sizes + 1 DEFAULT_CELL_HEIGHT and 5px for spacing + 46px for adding rows footer
966+ width : DEFAULT_CELL_WIDTH , // sum of col sizes
967+ height : 162 , // sum of row sizes + 46px for adding rows footer
968968 } ) ;
969969 expect ( model . getters . getNumberRows ( sheetId ) ) . toBe ( 6 ) ;
970970 } ) ;
@@ -983,16 +983,16 @@ describe("Rows", () => {
983983 } ) ;
984984 let dimensions = model . getters . getMainViewportRect ( ) ;
985985 expect ( dimensions ) . toMatchObject ( {
986- width : 192 , // col size + 1 DEFAULT_CELL_WIDTH for spacing
987- height : 170 , // sum of row sizes + 1 DEFAULT_CELL_HEIGHT and 5px for spacing + 46px for adding rows footer
986+ width : DEFAULT_CELL_WIDTH , // sum of col sizes
987+ height : 142 , // sum of row sizes + 46px for adding rows footer
988988 } ) ;
989989 const to = model . getters . getActiveSheetId ( ) ;
990990 createSheet ( model , { activate : true , sheetId : "42" } ) ;
991991 activateSheet ( model , to ) ;
992992 dimensions = model . getters . getMainViewportRect ( ) ;
993993 expect ( dimensions ) . toMatchObject ( {
994- width : 192 , // col size + 1 DEFAULT_CELL_WIDTH for spacing
995- height : 170 , // sum of row sizes + 1 DEFAULT_CELL_HEIGHT and 5px for spacing + 46px for adding rows footer
994+ width : DEFAULT_CELL_WIDTH , // sum of col sizes
995+ height : 142 , // sum of row sizes + 46px for adding rows footer
996996 } ) ;
997997 } ) ;
998998 } ) ;
0 commit comments