Bug 122542 - Image scaling - keep ratio (writer)
Summary: Image scaling - keep ratio (writer)
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: iOS Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other iOS
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:6.3.0
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-07 17:11 UTC by Nicolas Christener
Modified: 2019-08-30 08:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Christener 2019-01-07 17:11:50 UTC
Description:
Scaling a picture in writer using the handles in the corner does not keep the apsect ratio.

In desktop LibreOffice this seems to be the default nowadays and I propose thisis also the default in the iOS app.

A user who wants to change the width/height of a picture can use the relevant handle(s) on an edge (not the corner).

Bonus points for displaying some relevant information (such as pixels, milimeter) while dragging is in process.

Steps to Reproduce:
1. Insert a picture in a writer document in the iOS app
2. Resize the picture using the resize handle in the corner

Actual Results:
The aspect ratio (width/height) is not preserved.

Expected Results:
Using the handle in the corner should preserve the aspect ratio of the picture.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Xisco Faulí 2019-02-07 16:09:57 UTC
Let change this one to new...
Comment 2 Commit Notification 2019-05-31 11:46:38 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/online/+/0f5ff84b46021e136722449cf3c21aca04fa962b%5E%21

tdf#122542: In the mobile apps, keep aspect ratio when dragging corner handles
Comment 3 How can I remove my account? 2019-05-31 11:50:36 UTC
The above change fixes it.

In desktop LibreOffice, the behaviour depends on whether the image is a photo or a shape. But yeah, as one can always change the aspect ratio by dragging the edge midpoint handles, I don't see a problem in having the corner handles always keeping the aspect ratio in the mobile apps.
Comment 4 How can I remove my account? 2019-08-30 08:50:40 UTC
Now (in the collabora-online-4 branch, in build 55) the behaviour has changed so that the aspect ratio is *always* kept, even when dragging the middle handles, not just the corner ones. I don't know if that is intentional, and how it is in Collabora's production branches, too. Aron, any idea?