소스 검색

Fix the logic behind adjusting cell's rowspan on removing row.

Maciej Gołaszewski 5 년 전
부모
커밋
2d1df121cc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ckeditor5-table/src/tableutils.js

+ 1 - 1
packages/ckeditor5-table/src/tableutils.js

@@ -311,7 +311,7 @@ export default class TableUtils extends Plugin {
 			const isCellOverlappingRemovedRows = row < first && lastRowOfCell >= first;
 
 			if ( isCellOverlappingRemovedRows ) {
-				const rowspanAdjustment = lastRowOfCell >= last ? rowsToRemove : first - row;
+				const rowspanAdjustment = lastRowOfCell >= last ? rowsToRemove : lastRowOfCell - first + 1;
 				const rowSpanToSet = rowspan - rowspanAdjustment;
 				cellsToTrim.push( { cell, rowspan: rowSpanToSet } );
 			}