mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
fix form cells
This commit is contained in:
1 parent
28b583691f
commit
ea0efe9314
1 file changed
+1
-1
@@ -78,7 +78,7 @@ module Templates
|
|||||||
next if attrs[:w].zero? || attrs[:h].zero?
|
next if attrs[:w].zero? || attrs[:h].zero?
|
||||||
|
|
||||||
if child_field[:MaxLen] && child_field.try(:concrete_field_type) == :comb_text_field
|
if child_field[:MaxLen] && child_field.try(:concrete_field_type) == :comb_text_field
|
||||||
attrs[:cell_w] = w / page_width / child_field[:MaxLen].to_f
|
attrs[:cell_w] = w / page_width.to_f / child_field[:MaxLen].to_f
|
||||||
end
|
end
|
||||||
|
|
||||||
attrs
|
attrs
|
||||||
|
|||||||
Reference in new issue
Block a user