Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In my modal the child modal starts at one size, and then adjusts when a user selects an option and choices are available via ajax.
The modal will adjust to the first size of the child, but does not adjust in size if the child changes. Is there anything setting I can change to make this happen?
Thanks,
K
Comments
Comment #1
dsnopekYes! In Javascript in the child frame, you need to detect the changes and can call
Drupal.modalFrameChild.triggerParentEvent('childResize')
which will cause the modal to resize itself. I hope that helps!