box/spout

Automatically calculate columns width / rows height

開放

#129 建立於 2015年10月22日

 (60 則留言) (39 個反應) (0 位負責人)PHP (637 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (4,231 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南