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

dsnopek’s picture

Issue summary: View changes
Status: Active » Fixed

Yes! 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!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.