box/spout

Automatically calculate columns width / rows height

Ouverte

#129 ouverte le 22 oct. 2015

 (60 commentaires) (39 réactions) (0 personne assignée)PHP (637 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (4 231 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Instead of using the default width/height, Spout could calculate the optimal width/height for each cell, based on its content.

This involves using a graphics library, render the text content with the chosen font and get the width/height of the rendered text.

This calculation may be slow so it should be optional. It can also be used when using "wrap text" as wrapping does not work well without a custom row height in LibreOffice.

Spout should expose an option to automatically set the optimal width/height but should also allow developers to specify a max width / height. When the max width is reached, the content will automatically wrap and the cell height will increase. It will increase until it reaches the max height.

Guide contributeur