fix form cells
This commit is contained in:
@@ -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