Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In same cases, where width and maxWidth is set for a ctools modal, it does not respect the maxWidth size.
Patch attached to fix that.
Comment | File | Size | Author |
---|---|---|---|
#4 | ctools-modal_maxwidth-1872586-3.patch | 868 bytes | maximpodorov |
Comments
Comment #1
Nick_vhComment #2
igalarza CreditAttribution: igalarza commentedI've used it and works. After the patch you only need to add the css. It would be nice if it's included in the module.
Regards.
Comment #4
maximpodorov CreditAttribution: maximpodorov commentedThe patch is re-rolled for the current dev.
Comment #5
MichelleI was trying to test this but knew nothing of this functionality so I followed the tutorial on this blog post. However, I can't see where you set the width/maxWidth. I looked at the code that it's calling, ctools_modal_render and then ctools_modal_command_display but don't see anything in there, either. If someone could give me a pointer on this, I'd be happy to test. :)
Comment #6
idebr CreditAttribution: idebr commented@Michelle I have only been able to set the maxWidth/maxHeight through code, eg:
Comment #7
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 4 year old patch in #4 to modal.js still applies cleanly to the latest ctools 7.x-1.x-dev and if still applicable needs review.