Hello Wolfgang, I have forwarded your email to a friend from the LibreOffice team, but he is on vacation these days. Please be patient :)
Greetings from Denmark (also on vacation) Svante ᐧ 2017-08-10 9:34 GMT+02:00 Wolfgang Pausch <[email protected]>: > Hello, > > I try to set up an odt spreadsheet document using odfdom. I have quite a > lot of cells that contain more than one line of text. Thus, what I want is > that I fill the cells with content, and then the necessary row height is > determined automatically. > > According to chapter 20.384 of http://docs.oasis-open.org/off > ice/v1.2/OpenDocument-v1.2-part1.pdf, there is an attribute > > style:use-optimal-row-height > > with the description > > true: row height should be recalculated automatically if content in the >> row changes. >> > > When I set this attribute to true on my row, generate the document, and > open it in Libreoffice, the row height was *not* determined automatically. > Once I make any manual input in that row, Libreoffice recalculates the row > height, and everything is fine. > > Now, obviously Libreoffice honors the specification of that attribute - it > recalculates the row heigth on changes. > > My question is, how can I make it recalculate the row height on document > generation, such that the row height is already correct when the user opens > the generated spreadsheet document for the first time? Is this possible at > all? > > Is my problem somehow related to https://bugs.documentfoundatio > n.org/show_bug.cgi?id=45789 ? > > Thanks for any ideas, > > Wolfgang > >
