Closed (fixed)
Project:
Layout Builder Modal
Version:
8.x-1.0
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2020 at 15:35 UTC
Updated:
2 Feb 2022 at 12:18 UTC
Jump to comment: Most recent, Most recent file
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.