Skip to content

Commit 7d4a8d8

Browse files
committed
Added objectPosition attribute to <img>
1 parent c5fee6f commit 7d4a8d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/widgets/Image/image.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ export const ImageComponent = (
8181
transform: `rotate(${rotation}deg) scaleX(${
8282
flipHorizontal ? -1 : 1
8383
}) scaleY(${flipVertical ? -1 : 1})`,
84-
objectFit: props.stretchToFit ? "fill" : "none"
84+
objectFit: props.stretchToFit ? "fill" : "none",
85+
objectPosition: "top left"
8586
}}
8687
/>
8788
</div>

0 commit comments

Comments
 (0)