xenomedia / xeno_hero

Drupal 8 module that creates a Hero Paragraphs bundle.
GNU General Public License v2.0
23 stars 18 forks source link

Fix for Background position update in Drupal 8 #12

Open mugetsu opened 7 years ago

thejimbirch commented 6 years ago

@albertski Can you review?

albertski commented 6 years ago

I tested the new patch and it works. The problem is that I can't get it to fail with the current version.

@mugetsu What browser did you see this issue on? Any recommendation on replicating this issue?

mugetsu commented 6 years ago

@albertski chrome but with bootstrap_paragraphs 8.x-2.0-alpha7 module enabled

albertski commented 6 years ago

Hmm, do you have anything custom set up or just default setup?

I'm trying to figure out why this doesn't work for you:

$backgroundObj.css({ backgroundPosition: coords });

But this does work:

$('.paragraph--type--xeno-hero__image', container).css({ backgroundPosition: coords });

Are you getting a javascript error?

What version of Jquery are you using?