Column width problem in HTML to XLSX (with playground example)



  • Hello, I have a problem with rendering columns using the HTML to XSLX recipe. The columns' widths are not properly and I do not understand why. Here is a playground repro of the problem that I am facing. https://playground.jsreport.net/w/anon/sUEKgijI

    Note that if the column count is small (like max 5 columns) then they are properly rendered and width is fine, but if there are more (e.g. 15 columns) then they are auto adjusted by something... Any tips on how to solve this?



  • The same behavior you get also with html. Try it like this

    <td style="min-width: 150px">{{.}}</td>
    


  • Whoa, that actually worked, thanks! I can't imagine why though...


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.