Skip to content

Rotating an SVG in the preview cuts off part of the drawing #4322

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Since #3911, rotating an SVG in the preview cuts off part of the drawing. The SVG wrapper now fills the whole stage and gets rotated as a whole, so a landscape stage turned by 90° doesn't fit anymore.

Reproduction Steps

  1. Open a landscape SVG (e.g. 400×300) in the preview
  2. Click "Rotate the image 90 degrees to the right"

Expected Outcome

The rotated drawing fits the stage, like a raster image or an SVG before #3911.

Actual Outcome

About a quarter of the drawing is cut off at the top and bottom (left and right on phones for portrait SVGs). The classes changed in packages/web-app-preview/src/components/Sources/MediaImage.vue.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions