Similar to how images are proportionately being resized (bug 71669, bug 83808), we should also by default resize proportionately non-shape objects like media and OLE Objects (e.g. Charts).
Did this for media objects, but I am not sure we want this for OLE objects as well. I tested with a Chart and when resizing unproportionally, the content is being updated without anything stretched, so the layout is not broken. So I think it's different to images and media objects here and I would leave the user the flexibility there.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=f669eec43ee902071c8f56a322a6dfb1a4a66e45 tdf#97919 Resize media objects proportionally by default It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
(In reply to Samuel Mehrbrodt (CIB) from comment #1) > I tested with a Chart and when resizing unproportionately, the content is > being updated without anything stretched, so the layout is not broken. The same argument could be stated for resizing SVGs unproportionately, as the content is being updated. The original width to height ratio should be retained for elements where retaining the ratio is the most probable action that a user would like to do. So in the case of a chart, which to most users looks like an image and we allow them to export it also as an image, sizing it proportionally is the best default action. Here is a simple example of an OLE object where proportionate resizing should be its default. 1) Open Writer 2) Insert > Object > OLE Object 3) Select 'create from file' and press OK 4) Select a SVG or a spreadsheet file 5) Once inserted, resize it and do you expect it to do so proportionately or unproportionately.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=4af2f26a955d172e8b72579c9bc6534e98b9f72b tdf#97919 Also resize ole objects proportionally by default It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
(In reply to Yousuf (Jay) Philips from comment #3) > (In reply to Samuel Mehrbrodt (CIB) from comment #1) > > I tested with a Chart and when resizing unproportionately, the content is > > being updated without anything stretched, so the layout is not broken. > > The same argument could be stated for resizing SVGs unproportionately, as > the content is being updated. The original width to height ratio should be > retained for elements where retaining the ratio is the most probable action > that a user would like to do. So in the case of a chart, which to most users > looks like an image and we allow them to export it also as an image, sizing > it proportionally is the best default action. > > Here is a simple example of an OLE object where proportionate resizing > should be its default. > 1) Open Writer > 2) Insert > Object > OLE Object > 3) Select 'create from file' and press OK > 4) Select a SVG or a spreadsheet file > 5) Once inserted, resize it and do you expect it to do so proportionately or > unproportionately. Convinced :)
Absolutely agree with Jay here. What percentage of users wants visual objects resized unproportionally? My guess would be below 1% likely. Samuel, thanks a lot for this obvious improvement.
Works as expected