Safari (formio.js >= 4.16.x): Columns component inside a Data Grid, the Columns are too narrow (unusable)
bobslee opened this issue · comments
Observed behavior
Browser
- The issue (below) occurs in the Safari browser (version 16.6).
- Issue doesn't occur in recent Firefox, Chrome.
Affected formio.js versions
- 4.14.x => Not affected (no issue)
- 4.15.x => Affected (has issue)
- 4.16.x => Affected (has issue)
- 4.17.x => Affected (has issue)
- 4.18.x => Affected (has issue)
Issue
See the screenshots below.
A Columns component inside a Data Grid: The Columns are too narrow (unusable).
I also tested with Bootstrap versions: 4.1.3, 4.4.1, 4.6.2
No differences with the formio.js versions above; has the same outcome.
Screenshots
Form: Data Grid with Columns inside
![image](https://private-user-images.githubusercontent.com/328803/288547330-d363ecd4-579a-42ef-9e69-d38478d5a3d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg0MTA4NTEsIm5iZiI6MTcxODQxMDU1MSwicGF0aCI6Ii8zMjg4MDMvMjg4NTQ3MzMwLWQzNjNlY2Q0LTU3OWEtNDJlZi05ZTY5LWQzODQ3OGQ1YTNkNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxNVQwMDE1NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01YTc4NzM4ZDBlZjAyODJjMmZkNThmYTMzYTkzYTY5ZGNlYzRjMjBlNDViZTMwMDg3YWI3ZTBhMDFlY2E5MzRkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.41P01OG3tbE_zBqmpNOrTUA27IsPCQJ_O2l0OJ8nGvM)
Form Builder: Columns component
Some "Column Properties" are too narrow.
![image](https://private-user-images.githubusercontent.com/328803/288547585-c8bae9f3-4b61-4bf0-ad5d-442fa6c259cb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg0MTA4NTEsIm5iZiI6MTcxODQxMDU1MSwicGF0aCI6Ii8zMjg4MDMvMjg4NTQ3NTg1LWM4YmFlOWYzLTRiNjEtNGJmMC1hZDVkLTQ0MmZhNmMyNTljYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxNVQwMDE1NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMjY5Y2E5OTNkZjg5ZjY2NzZhOWFiOTMwYjBkYTczM2VhMzU4YzE2ZjUwOGQ3OGFmNTcxOGJlNTM2NzliMGRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.OqyBHJQqvq1yX0o54r3zjruVPkfisTPpoLqKF8a0Obc)
Hey @bobslee thanks for reporting this. I'm unable to reproduce this on the form.io sandbox; that being said, I'll make sure this gets in front of the folks that prioritize these tickets, if I had to guess it's likely a CSS issue in the @formio/bootstrap repo.
@brendanbond Thanks for answering and follow up.
Yes indeed it seems a bootstrap CSS issue or missing markup in the Columns component template(s).
Concerning 1st screenshot (a form):
In the form I did a workaround by either:
- Add
class=cols-md-X
to the other<div>
s. - A
width: 100%
could also help.
Concerning 2nd screenshot (form builder component):
I didn't checked the "Columns Properties" (also a columns component) in the Columns component tab.
Thanks!