https://bugs.documentfoundation.org/show_bug.cgi?id=166210
--- Comment #9 from Adam <[email protected]> --- (In reply to opp from comment #4) > Could you provide us more straight forwards steps ? > Like Insert -> Field -> More fields -> Variables -> User fields ... > > I never used these options, it took me some time to figure out how to follow > some of the steps. > I think I reproduced the issue in the sense that the row has a minimal row > height when it should not > > I made 4 lines in a row, selected 2, added a section with Insert -> Section, > added a name in new section, checked "hide", with condition > "SectionOne.Indicator EQ "Y"" and insert > > When I inserted, the text of the two lines disappear, but the row height is > the same. > Adding 4 lines in the table row and then deleting them shows that the row > height has a minimum (the row height is 4 lines instead of the 2) My apologies for the confusion. Here are updated steps: These steps are performed using LibreOffice 7.4.3.2 1. Insert→Field→More Fields→ Variables. In the “Type” column select “User Field”. Enter “SectionOne.Indicator” for the name, “N” for the “Value”, and check the “Invisible” box. Click the green check mark, and then the insert button. 2. Repeat the step above to insert a second field with “SectionTwo.Indicator” for the name, “N” for the “Value”, and check the “Invisible” box. Click the green check mark, and then the insert button. 3. Below these two hidden fields you just placed we want to insert a table. Navigate to Table → Insert Table→ One row for the table is most efficient for our purposes here. My table had 2 columns and I just sized column 1 at somewhere in the range of .4 inches. Our work will be in column2. (It may be helpful to turn on table borders when you create this table so you can more easily see how the row reacts when the sections show/hide) 4. Place your cursor in the right hand column of the table you just inserted and hit the enter key 3 times. (this makes it easier when inserting the sections. 5. Place your cursor on top line of the 3 lines you just created in the column, and Insert → Section. Name it Section 1. 6. Place your cursor in the “Section 1” you just created and type the text “Section 1”. I also like to change the background color of the section to make it easier to see when testing. To do this got to Format → Sections → choose “Section 1” from the list. Then click “Options”, select the “Background” tab, and choose a color of your choice. Click “OK” then “OK” again 7. Place your cursor on the line below “Section 1” and type the words “Static Text”. This text is helpful for seeing how the table reacts when the sections show/hide 8. Place your cursor on bottom line in the column, and Insert → Section. Name it Section 2. 9. Place your cursor in the “Section 2” you just created and type the text “Section 2”. I set the background color of this section to a different color that our first section. 10. Add the conditions to your sections you just created. To do this Select Format → Sections. Select Section 1, check the “Hide” box and in the space after “with condition” enter “SectionOne.Indicator EQ "Y"”. Follow the same procedure for Section 2 and use the condition “SectionTwo.Indicator EQ "Y"”. 11. Save this odt. With the Variables, table, and sections in place we can now look at the behavior of the table when the sections are hidden. 1. Navigate to Insert→Field→More Fields→ Variables. Change the value for “SectionOne.Indicator” from “N” to “Y”. and note that “Section 1” hides as expected, text within the cell shifts up, and the table row shrinks. 2. Now do the same and change the value for SectionTwo.Indicator from “N” to “Y” and note that section 2 hides, the table shrinks, and all we see is our static text we did not place in a section. This is the behavior that is expected and I have hundreds of templates that rely on these tables shrinking to suppress white space. 3. Exit the odt without saving at this point. Now we need to test the table behavior with our existing odt, using LibreOffice version 24.8.5.2. 1. Open the ODT and Navigate to Insert→Field→More Fields→ Variables. Change the value for “SectionOne.Indicator” from “N” to “Y”. and note that “Section 1” hides as expected, text within the cell shifts up, but the table row does not shrink. 2. Now do the same and change the value for “SectionTwo.Indicator” from “N” to “Y” and note that section 2 hides and all we see is our static text we did not place in a section. However the table is still reserving the space for the two hidden sections and DID NOT shrink to fit. This behavior is causing problems in all of my previously created templates that utilize the conditional section functionality within table rows. I have tried changing the settings at Table → Size → Row Height using “0.00” and fit to size. I have also tried setting it with Table → Size → Minimal Row Height. None of the table row sizing option in 24.8.5.2 have worked for me. The table row still reserves all of the space for three lines, even when the conditional sections are hidden. -- You are receiving this mail because: You are the assignee for the bug.
