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.
There are various reports of ctools modals not sizing correctly, and several attempts fix it using outerHeight()
differently.
Here is another patch that attempts to fix it. More detail about the different scenarios and ways to test them are require to resolve this once and for all.
Comment 5 on #1803104: Modal dialog position after ajax load is not refreshed has a very similar patch, but that adds the parameter true
where this patch adds false
instead.
Comment | File | Size | Author |
---|---|---|---|
#10 | 2216873-9.patch | 1.37 KB | shubham.prakash |
Comments
Comment #3
mrjmd CreditAttribution: mrjmd commentedRe-roll attached.
Comment #4
DamienMcKennaThe code needs a little bit of tweaking to match the Drupal coding standards, specifically no whitespace inside of the parenthesiseses, so "(winHeight / 2)" instead of "( winHeight / 2 )".
Comment #5
mrjmd CreditAttribution: mrjmd commentedFixed :)
Comment #6
maximpodorov CreditAttribution: maximpodorov commentedI think this issue duplicates #1803104: Modal dialog position after ajax load is not refreshed.
Comment #7
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 4 year old patch in #5 to modal.js does not apply to the latest ctools 7.x-1.x-dev and if still applicable needs to be rerolled.
Comment #8
ikeigenwijs CreditAttribution: ikeigenwijs commentedThe jumping to top after scrolling in a modal is still a problem.
Comment #9
shubham.prakash CreditAttribution: shubham.prakash at OpenSense Labs commentedComment #10
shubham.prakash CreditAttribution: shubham.prakash at OpenSense Labs commentedThis patch should fix the issue.
Comment #11
rpayanm