Unplanned
Last Updated: 21 Jun 2021 08:40 by ADMIN
Cypher
Created on: 11 Jun 2021 11:02
Category: ImageEditor
Type: Bug Report
1
Changing the AspectRatio value doesn't change the crop area when "Lock aspect ratio" is unchecked

Bug report

When cropping an image in the ImageEditor, if the "Lock aspect ratio" checkbox is unchecked, the change in the "Aspect Ratio" DropDownList doesn't change the crop area.

Reproduction of the problem

  1. Open this Dojo example.
  2. Load an image in the ImageEditor
  3. Click on the Crop button
  4. Uncheck the "Lock aspect ratio" checkbox from the menu on right
  5. Open the "Aspect Ratio" DropDownList and select a random value

Current behavior

The crop area above the loaded image doesn't change

Expected/desired behavior

The crop area should change based on the selected ratio, no matter if the "Lock aspect ratio" checkbox is checked or not

TicketID:

1523281

Environment

  • Kendo UI version: 2021.2.511
  • jQuery version: x.y
  • Browser: [all]
2 comments
ADMIN
Ianko
Posted on: 21 Jun 2021 08:40

Hi Cypher,

The behaviour from the last comment is designed on purpose. The orientation of the crop is ruled by the orientation set from the orientation buttons. This aims to simplify variations of the aspect ratio. That means that 3:1 aspect ratio becomes 1:3 when the portrait mode is selected. Otherwise, the aspect ratio dropdown will need variations of all aspect ratio options, e.g., 3:1 and 1:3, although those are the same aspect ratio.

Regards,
Ianko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Cypher
Posted on: 14 Jun 2021 23:34

Note that the Orientation buttons in the Crop tool UI should also reflect the orientation specified by the selected Aspect Ratio in the DropDownList.

Example:
3:1 => Landscape
2:3 => Portrait