univer icon indicating copy to clipboard operation
univer copied to clipboard

[Bug] When inserting a row, images below do not move as expected if cells have text wrapping enabled

Open zhaijunlei955 opened this issue 1 month ago • 0 comments

Before you submit this issue, have you checked the following

  • [x] Is this really a problem?
  • [x] I have searched the Github Issues for similar issues, but did not find anything.

Affected packages and versions

v0.15.1

Reproduction link

https://github.com/user-attachments/assets/c1b80d7a-d14f-42fe-a63d-a3e63b99ab8b

1、Prepare initial content:

  Insert a floating image in the spreadsheet.
  
  In two consecutive rows above the image (e.g., Row 1 and Row 2), enter long text into their cells.
  
  Enable "Wrap Text" formatting for these cells.

2、Insert multiple rows:

Insert several new rows between these two original rows (e.g., between Row 1 and Row 2).

3、Observe the bug:

Expected: The image should shift down accordingly to maintain its relative position below the expanded row range.

Actual: The image may not move as expected — it might remain in its original position, causing overlap with newly inserted rows or misalignment with its intended anchor cell.

Expected behavior

Images should automatically shift down along with their anchor cells when a new row is inserted.

Actual behavior

Images remain in their original position, causing layout misalignment or overlap.

System information

Win11,Edge

zhaijunlei955 avatar Jan 15 '26 08:01 zhaijunlei955