When the browser window is narrower than the width of the modal, the modal gets cut off. Is it possible to change it so the modal would resize with the window?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff-layout_builder_modal-3127943-4-6.txt | 978 bytes | edurenye |
| #6 | layout_builder_modal-3127943-6.patch | 3.49 KB | edurenye |
| #4 | layout_builder_modal-3127943-4.patch | 2.53 KB | edurenye |
Comments
Comment #2
johnwebdev commentedUnfortunately, that does not seem to be supported by jQuery Dialog out of the box.
https://api.jqueryui.com/dialog/#option-width
Changing this to a feature request instead of bug.
Comment #3
strykaizerWhile not documented in jquery dialog, modal_width also allows percentages.
Adding this in settings.php works:
Comment #4
edurenye commentedThis patch allows to enter a percentage for 'modal_width'.
Comment #6
edurenye commentedFixed tests.
Comment #7
murzThanks for the solution, it works well, and patch changes are looks good!
If "Layout Builder Modal" module is already installed, it needs reinstalling to change configuration setting from integer to string.
Maybe we can resolve this via hook_update function?
Comment #9
johnwebdev commentedI don't think we need a update hook here. Just tested manually, and it works great
Thanks!
Comment #11
berliner commentedAn update hook would have been appreciated, but re-install also works.
Note that without an update hook, the UI works almost as expected, but whatever is entered for the width is stored as an integer, so percentage signs are removed.