Bug 108412 - Dragging edge (not corner) control point on shape keeps aspect ratio
Summary: Dragging edge (not corner) control point on shape keeps aspect ratio
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.3.3.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-08 11:15 UTC by Simon Fenney
Modified: 2017-06-12 08:31 UTC (History)
2 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 Simon Fenney 2017-06-08 11:15:15 UTC
Description:
Tried to resize a shape, eg rectangle, by dragging a middle control point but it behaves as if it were a corner control point in that it maintains the aspect ratio. 

I tried the same thing in the OpenOffice version of draw and it works as one would expect. (I would use OpenOffice except I have to work on files created by Microsoft Visio).

Have noticed that holding down the shift key while dragging doesn't preserve aspect ratio, which appears to be the exact opposite of what the documentation says: https://help.libreoffice.org/Draw/Shortcut_Keys_for_Drawings#Shortcut_Keys_Specific_to_Drawings 

Sounds, to me, like boolean is being misinterpreted. 

Steps to Reproduce:
1.Create a new drawing and add, say, a filled rectangle. Select rectangle
a rectangle
2.drag an edge control point to try to make, say, wider/thinner or shorter/taller (but not both)
3.Observe both horizontal and vertical scaling change.
4. Note holding down shift key does allow independent scaling, contrary to documentation.

Actual Results:  
see above.

Expected Results:
I expected only one of the dimensions to be altered.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Comment 1 Thomas Woltjer 2017-06-09 23:57:26 UTC
Could not reproduce, using Manjaro Linux 64-bit. 

Version: 5.4.0.0.beta2+
Build ID: 81e7ef8d3941de527f21c1508389c9e09518680b
CPU threads: 16; OS: Linux 4.9; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-4, Time: 2017-06-08_04:31:09
Locale: en-US (en_US.utf8); Calc: group
Comment 2 raal 2017-06-10 06:06:26 UTC
2.drag an edge control point to try to make, say, wider/thinner or shorter/taller (but not both)
3.Observe both horizontal and vertical scaling change.
no repro with LO 5.3.3 and Version: 5.5.0.0.alpha0+

4. Note holding down shift key does allow independent scaling, contrary to documentation.
reproducible, but I doesn't see a bug here. In documentation > Shift+drag while creating or resizing an object 	= Constrains the size to keep the object's aspect ratio.
Comment 3 Buovjaga 2017-06-11 15:29:33 UTC
Check this setting: Tools - Options - LibO Draw - Grid: Snap Position (later renamed to Constrain Objects).

If you have enabled "When creating or moving objects", the scaling will behave like you describe.
Comment 4 Simon Fenney 2017-06-12 08:10:46 UTC
(In reply to Buovjaga from comment #3)
> Check this setting: Tools - Options - LibO Draw - Grid: Snap Position (later
> renamed to Constrain Objects).
> 
> If you have enabled "When creating or moving objects", the scaling will
> behave like you describe.

Thanks Buovjaga, that explains it. One would expect that to actually be labelled "constrain aspect ratio". In summary, it's a "bug" in the displayed text in the UI.

(Having used Visio for many years, I was finding the whole behaviour completely baffling, and was beginning to wonder if it was a bug in the Visio to Draw importer).
Comment 5 Buovjaga 2017-06-12 08:18:26 UTC
(In reply to Simon Fenney from comment #4)
> (In reply to Buovjaga from comment #3)
> > Check this setting: Tools - Options - LibO Draw - Grid: Snap Position (later
> > renamed to Constrain Objects).
> > 
> > If you have enabled "When creating or moving objects", the scaling will
> > behave like you describe.
> 
> Thanks Buovjaga, that explains it. One would expect that to actually be
> labelled "constrain aspect ratio". In summary, it's a "bug" in the displayed
> text in the UI.
> 
> (Having used Visio for many years, I was finding the whole behaviour
> completely baffling, and was beginning to wonder if it was a bug in the
> Visio to Draw importer).

The label "bug" does not exist anymore as it is Constrain Objects in the next version (it is not only aspect ratio, but affects moving and rotating).

Btw. the setting is not on by default.
Comment 6 Simon Fenney 2017-06-12 08:24:15 UTC
(In reply to Buovjaga from comment #5)
on (it is not only aspect ratio, but affects moving and rotating).
> 
> Btw. the setting is not on by default.

That's probably because, when I was importing Visio diagrams, I was having a lot of difficulty trying to get similar grid behaviour so looked at the options.

"Snap position when creating or moving objects" was _obviously_ something I'd want to turn on, so did.