mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
fix cell render
This commit is contained in:
1 parent
5073f2eefb
commit
451f83421a
1 file changed
+5
-1
@@ -575,7 +575,11 @@ module Submissions
|
||||
fill_color:,
|
||||
font_size:)
|
||||
|
||||
line_height = layouter.fit([text], cell_width, height).lines.first.height
|
||||
line = layouter.fit([text], width, height).lines.first
|
||||
|
||||
line_height = line.height
|
||||
|
||||
cell_width = [line.width, cell_width].max
|
||||
|
||||
if preferences_font_size.blank? && line_height > (area['h'] * height)
|
||||
text = HexaPDF::Layout::TextFragment.create(char,
|
||||
|
||||
Reference in new issue
Block a user