Webform confirmation modal has a minWidth: 600px; in /js/webform.confirmation.modal.js which will case a horizental scroll on small screens.
I can solve this issue for me in CSS but it's better if we can solve it in the module.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | AwesomeScreenshot-localhost-wf-admin-modules-2019-08-06_4_30.png | 597.89 KB | jrockowitz |
| #10 | 3010798-10.patch | 549 bytes | jrockowitz |
| #9 | responsive_confirmation_modal-3010798-9.patch | 365 bytes | anas_maw |
| #6 | 3010798-6.patch | 362 bytes | jrockowitz |
Comments
Comment #2
jrockowitz commentedUsing the Bartik theme the confirmation modal is responsive.
What base theme are you using?
Does changing minWidth to maxWidth help?
Comment #3
anas_maw commentedI'm using bootstrap theme, I fixed this by adding a CSS to my custom theme with media query for small screens.
Comment #4
jrockowitz commentedI am not able to get the confirmation modal to even appear with the Bootstrap theme.
Comment #5
anas_maw commentedI just checked this and I figured out that bootstrap theme missing - core/jquery.ui.dialog in their libraries. I added this library to my custom theme and I got this working fine. Maybe because they use bootstrap modal instead of jQuery UI one.
Maybe we should open a separate ticket in the bootstrap project issue queue about this first.
Comment #6
jrockowitz commentedThe attached patch allows the jquery ui dialog to be used.
I am not sure if this a Bootstrap or Webform specific issue. Someone with more experience with Bootstrap would need to step in a help resolve this issue.
Comment #8
jrockowitz commentedI committed the patch to fix the immediate issue of no dialog being displayed.
Comment #9
anas_maw commentedGreat, now what about to fix responsive issue by adding these CSS lines.
Comment #10
jrockowitz commentedAttached patch moves this solution into the webform_bootstrap.module.
Comment #13
squibb commentedPardon my ignorance, where is this webform_bootstrap module?
Comment #14
jrockowitz commented@squibb The Webform Boostrap module is a sub-module included with the Webform module.
Comment #15
squibb commented@jrockowitz I was almost sure I was doing something stupid. Thanks for your quick reply.