The hide animation when you click on the decline button is hard-coded to a bottom position. If you put the popup slider on top, the hide animation tries to animate it incorrectly. Especially if you use custom theming this can be a problem.
see eu_cookie_compliance.js line 256:
Drupal.eu_cookie_compliance.declineAction = function () {
Drupal.eu_cookie_compliance.setStatus(0);
$('#sliding-popup').animate({ bottom: $('#sliding-popup').outerHeight() * -1 }).trigger('eu_cookie_compliance_popup_close');
};
It says bottom, whereas it should check if (Drupal.settings.eu_cookie_compliance.popup_position) {}.
Comments
Comment #2
basvredelingsimple patch
Comment #3
svenryen commentedHere you write "top"
Here you also write "top". Should one of them be "bottom"?
Comment #4
basvredelingSloppy of me... here's a new patch.
Comment #5
basvredelingChanged branch to 7.x-1.x-dev
Comment #6
basvredeling@svenryen please review #4
Comment #7
svenryen commentedGetting to it.. There's a lot in the pipeline though, so please be a bit patient.
Comment #10
svenryen commentedFixed. Thanks!
Comment #11
basvredelingThank you @svenryen