xeno_hero icon indicating copy to clipboard operation
xeno_hero copied to clipboard

Fix for Background position update in Drupal 8

Open mugetsu opened this issue 7 years ago • 4 comments

mugetsu avatar Sep 25 '17 08:09 mugetsu

@albertski Can you review?

thejimbirch avatar Oct 16 '17 18:10 thejimbirch

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?

albertski avatar Oct 16 '17 19:10 albertski

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

mugetsu avatar Oct 20 '17 09:10 mugetsu

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?

albertski avatar Oct 20 '17 14:10 albertski