https://bugs.documentfoundation.org/show_bug.cgi?id=105441
Bug ID: 105441
Summary: styles don't resize shape with "resize shape to fit
text"
Product: LibreOffice
Version: 5.3.0.1 rc
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Draw
Assignee: [email protected]
Reporter: [email protected]
I actually tested this with version 5.3.0.2 [1].
[1]:
http://dev-builds.libreoffice.org/pre-releases/rpm/x86_64/LibreOffice_5.3.0.2_Linux_x86-64_rpm.tar.gz
Bug #93135 fixed the "resize shape to fit text" property as it pertains to the
**Format > Text...** menu item. However, when enabling the same property on a
style, the size of the shape remains unaffected under two scenarios:
1. when "resize shape to fit text" is enabled in the style and then applied to
the shape, and
2. when the style is applied to the shape and then "resize shape to fit text"
is enabled in the style.
The fubar nature of styles becomes more apparent when working with files saved
in libreoffice 5.2.x, so I'm restricting the steps for reproduction to new
files only. A patch against the steps provided may not affect Draw documents
created prior to the patch, and users may need to start a new document.
=== Steps to Reproduce (enable resize then apply style)
1. Open LibreOffice Draw
2. Start with a new document.
3. Draw a square on the page.
4. Add text to the square, e.g. "Hello world".
5. Open "Styles and Formatting" sidebar.
6. Right click on "Default" style and create New style named "Test".
7. In Style Editor, select "Text" tab, then...
a) Enable "Resize shape to fit text"
b) Enable "Fit width to text"
c) Click "OK"
8. In "Styles and Formatting" sidebar...
a) Select "Test" style
b) Click the "Apply" bucket icon at the top (selecting this tool appears
to be broken, you may have to select a shape on the page before you
can use the tool).
9. Click on the square on the page to apply the "Test" style to the square.
10. Observe that the shape does not resize around the text:
a) immediately after applying the text, or
b) after editing the text, or
c) after resizing the shape manually.
=== Steps to Reproduce (apply style then enable resize)
1. Open LibreOffice Draw
2. Start with a new document.
3. Draw a square on the page.
4. Add text to the square, e.g. "Hello world".
5. Open "Styles and Formatting" sidebar.
6. Right click on "Default" style and create New style named "Test", and
close the Style Editor Dialog.
7. In "Styles and Formatting" sidebar...
a) Select "Test" style
b) Click the "Apply" bucket icon at the top (selecting this tool appears
to be broken, you may have to select a shape on the page before you
can use the tool).
8. Click on the square on the page to apply the "Test" style to the square.
9. Right click the "Test" style in the "Styles and Formatting" sidebar and
select "Modify..." to open Style Editor Dialog.
10. In Style Editor Dialog, select the "Text" tab, then...
a) Enable "Resize shape to fit text"
b) Enable "Fit width to text"
c) Click "OK"
11. Observe that the shape does not resize around the text:
a) immediately after saving the style, or
b) after editing the text, or
c) after resizing the shape manually.
=== About Info
Version: 5.3.0.2
Build ID: 5ad7b2889021c491af62f7930a4b1cb631392f16
CPU Threads: 8;
OS Version: Linux 4.8;
UI Render: default;
VCL: gtk2;
Layout Engine: new;
Locale: en-US (en_US.UTF-8);
Calc: group
=== Additional notes
- In some tests, I noticed that applying the "Test" style after enabling
"resize shape to fit text" might update the height of the shape, but
not the width, though I could not identify any steps from scratch that
reproduced this
behavior.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs