Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
7.x-1.33
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2020 at 09:31 UTC
Updated:
8 Nov 2020 at 18:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
aubergine2010 commentedSolution:
Edit eu_cookie_compliance.js and remove lines 202~205 and add the below line instead:
var $bannerIsShowing = Drupal.settings.eu_cookie_compliance.popup_position ? parseInt($wrapper.css('top')) === (!Drupal.settings.eu_cookie_compliance.fixed_top_position ? -(parseInt($(Drupal.settings.eu_cookie_compliance.containing_element).css('padding-top')) + parseInt($(Drupal.settings.eu_cookie_compliance.containing_element).css('margin-top'))) : 0) : parseInt($wrapper.css('bottom')) === 0;Comment #3
svenryen commentedThanks for the report. We had some issues with the feature "Do not show policy on click" which is what prompted the insertion of the lines you suggest removing. Can you double check that we don't break the banner's ability to show when that option has been selected?
Could you also for the record run `drush vget eu_cookie_compliance`? I'm trying to understand what features you have enabled.
Comment #4
abaier commentedNoticed the same with the latest 8.x-version.
Comment #5
svenryen commentedHere are patches. Can you try it out and see if the patch resolves your issue?
I had to use a slightly different approach than the code change you recommended, but it should work.
Comment #6
abaier commentedThanks @svenryen, the d8 patch works for me.
Comment #9
svenryen commentedThanks for the RTBC!
Comment #10
aubergine2010 commentedpatch works for d7