https://bugs.documentfoundation.org/show_bug.cgi?id=105441
stragu <stephane.guil...@member.fsf.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|styles don't resize shape |styles don't resize shape |with "resize shape to fit |with "resize shape to fit |text" |text" until turned off by a | |different style (updated | |steps in Comment 7) --- Comment #8 from stragu <stephane.guil...@member.fsf.org> --- Still (partially) reproducible in 7.2, but I will try to clarify what is going in here. First of all, note that in 7.2, the Default Drawing Style has the following options on by default in the "Text" tab: - Fit height to text - Word wrap text in shape - Resize shape to fit text When creating a rectangle and adding some text to it, it has the style "Default Drawing Style". (You can confirm that with right-click on the shape > Edit Style...) So, to start with, it seems that a rectangle with some text in it doesn't follow the default style's options by resizing it to the text. (The issue with "Fit width to text" seems to be that it is ignored entirely in all cases, which should probably be a separate bug. I am ignoring it here, and only focusing on "Resize shape to fit text", to keep things as simple as possible. It needs further investigating.) Updated steps for LO 7.2.0.4: === Steps to Reproduce === 0. Restore everything to factory settings 1. Open LibreOffice Draw 2. Start with a new document 3. Draw two rectangles on the page 4. Add text to both rectangles, e.g. "apply style" for the first one, and "modify style" for the second one. Notice that the rectangle does not adapt to the size of the text (even though that is the default in the style). 5. Open "Styles" sidebar 6. Create two styles: a) Right-click on "Default Drawing Style" and create New style named "resize on". Click "OK" (it is a copy of the original). b) Right-click on "Default Drawing Style" and create New style named "resize off". Untick "Resize shape to fit text". Click "OK". 7. Select first shape on page 8. Double-click on "resize on" style: nothing happens, it still doesn't shrink to the size of the text. 9. Double-click on "resize off" style: nothing happens, as expected. However: 10. Double-click on "resize on" once more: now, the shape shrinks to the text. The option needed to be off in the style applied first, before being taken into account when turned on! 11. Now onto the _modification_ of the default style: modify the Default Drawing Style by unticking "Resize shape to fit text", click "OK". The second shape does not change, as expected. 12. Modify the Default Drawing Style again by turning "Resize shape to fit text" back on, click "OK". The second shape still does not shrink to the text size. 13. However, if you apply the style "resize off" to that second shape, and then turn on "Resize shape to fit text" in the "resize off" style, you'll see it does shrink to the size of the text. === Conclusion === So, trying to summarise in one sentence: the style setting "resize shape to fit text" is not taken into account _until_ it is turned off by applying a _separate style_ that has it off. I hope I was able to summarise accurately in this comment... Version used: Version: 7.2.0.4 / LibreOffice Community Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded -- You are receiving this mail because: You are the assignee for the bug.