Skip to content

Commit 344be7a

Browse files
chittolinagchittolinacaio-pizzol
authored
fix: image not being contained within cell (#2775)
Co-authored-by: Gabriel Chittolina <gabrielchittolina1@gmail.com> Co-authored-by: Caio Pizzol <97641911+caio-pizzol@users.noreply.github.com>
1 parent 797b0b4 commit 344be7a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/layout-engine/painters/dom/src/renderer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5509,6 +5509,7 @@ export class DomPainter {
55095509
// Position and z-index on the image only (not the line) so resize overlay can stack above.
55105510
img.style.position = 'relative';
55115511
img.style.zIndex = '1';
5512+
img.style.maxWidth = '100%';
55125513
}
55135514

55145515
// Apply rotation and flip transforms from OOXML a:xfrm

0 commit comments

Comments
 (0)