+
+ if (markerProp === 'top' && _this.targetCell) {
+ const cellElement = _this.targetCell;
+
+ _this.editor.update(() => {
+ const cellNode = $getNearestNodeFromDOMNode(cellElement);
+ const rowNode = cellNode?.getParent();
+ let rowIndex = rowNode?.getIndexWithinParent() || 0;
+
+ let change = distance.y;
+ if (_this.yMarkerAtStart && rowIndex > 0) {
+ rowIndex -= 1;
+ } else if (_this.yMarkerAtStart && rowIndex === 0) {
+ change = -change;
+ }
+
+ const targetRow = rowNode?.getParent()?.getChildren()[rowIndex];
+ if (targetRow instanceof TableRowNode) {
+ const height = targetRow.getHeight() || 0;
+ const newHeight = Math.max(height + change, 10);
+ targetRow.setHeight(newHeight);
+ }
+ });
+ }