opendocument-app / OpenDocument.core

C++ library that translates office documents to HTML
GNU General Public License v3.0
24 stars 9 forks source link

custom cell widths and heights in ODS #250

Closed TomTasche closed 3 years ago

TomTasche commented 3 years ago

Since images are not accounted for while calculating automatic cell widths and heights, some users request to honor explicitly set widths and heights instead. Example: https://github.com/opendocument-app/OpenDocument.test-private/blob/3bb21f15713693477ff129e1a35b3b1b053ff809/ods/image-in-cell-bug.ods

andiwand commented 3 years ago

looks like it is rendered correctly on desktop. maybe the mobile browser is trying to fit the table on the screen and therefore changing the size of the cells. need a closer look with mobile rendering

andiwand commented 3 years ago

the problem is that HTML does not care about the width of a column. I do not see an easy fix for that. the refactor https://github.com/opendocument-app/OpenDocument.core/pull/227 has a solution for that

andiwand commented 3 years ago

that should be fixed by https://github.com/opendocument-app/OpenDocument.core/pull/227