mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
fix cells length
This commit is contained in:
1 parent
5728381725
commit
db2b5f35bd
1 file changed
+3
-1
@@ -114,7 +114,9 @@ export default {
|
||||
const area = this.field.areas?.[0]
|
||||
|
||||
if (area) {
|
||||
return parseInt(area.w / area.cell_w) + 1
|
||||
const num = area.w / area.cell_w
|
||||
|
||||
return (num % 1) > 0.2 ? parseInt(num) + 1 : parseInt(num)
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user