Description: Automatic table alignment which behaves as relative converted to absolute size on DOCX Steps to Reproduce: 1. Open the attached file 2. Table -> Properties -> Table tab -> Notice automatic turned on 3. Drag the inner border red border to left or right (notice the embedded table adapting 4. File reload without save (there is bug which unchecks 'automatic when dragging inner border) 5. Save as DOCX 6. File reload 7. Drag the inner border to left (notice the embedded table not adapting) Actual Results: Relative behaviour lost on DOC/DOCX/ RTF export Expected Results: Should be still present Reproducible: Always User Profile Reset: No Additional Info: Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: f58f35b2c8ca1efbacec642a8f3de5b0c499bc6b CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL
Created attachment 174453 [details] Example file
Also in Versie 4.0.0.3 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89) and in LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4
Reproduced in: Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: da006fbe2d4c5891933390d72f6e6026b28d39fc CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-08-19_11:31:56 Calc: threaded
Created attachment 175525 [details] Example (simplification) 1. Open the attached file 2. Table -> Properties -> Table tab -> Notice automatic alignment 3. Cancel 4. Save as DOCX 5. Table -> Properties -> Table tab -> Notice From left & relative
@Justin Follow-up/ motivation for bug 143983 was actually this Created attachment 175525 [details] 1. Open the attached file 2. Table -> Properties -> Table tab -> Notice automatic alignment 3. Cancel 4. Save as DOCX 5. Table -> Properties -> Table tab -> Notice From left & relative Especially losing the relative property is annoying. This one of my personal vendetta/interest/concern/pet bugs. And no this isn't unique for DOCX. So this probably bug 144933 (or bug 107665 or bug 120505).. The likely should be stacked to one; all reports by me. It's even possible to aggregate those under bug 83536 (even older, except that one is by description limited to HTML) New reports a mainly caused by easier to reproduce example. And me trying to demonstrate the *extend* of the problem. But well there is a lots of self-interest here.. Dropping out of relative mode has cost me lots of additional hours.
A brief code read suggests that <w:tblW w:w="0" w:type="auto"/> in DOCX means something different from automatic in SW. It sounds like auto means "the table size is just all the cell sizes added up" while in SW it means "use the full page width" which is identical to relative 100% and LEFT=0. That suggests that we should export "auto" as relative, which shouldn't be that hard.
proposed fix for DOC and DOCX is http://gerrit.libreoffice.org/c/core/+/123128. RTF doesn't currently round-trip relative size on tables, so I skipped it. It neither reads relative table width (created by Word), nor exports automatic/relative as relative.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f629dc8dc8b9620508b5bd8e55ddb298438c447f tdf#143982 doc/x export: save automatic table as 100% relative It will be available in 7.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
This bug report remains open to handle the RTF case.