cycle icon indicating copy to clipboard operation
cycle copied to clipboard

SPANs reduced width

Open SteMMo33 opened this issue 5 years ago • 1 comments

Hello, I'm using your wonderful plugin in my project: I defined a list of 5 images, scrolling to right. The images are tagged with onclick handler. Sometimes happens that some images are not more sensible to the click: I discovered in the developer window that the containing SPAN was resized to 20px. My code is a series of lines like:

<span onclick="injectCode();"><img src="images/demoSlide/demo_1.png" style="margin-left:20px;background-color:transparent;" /></span>

After the first round of images the plugin add to the style the opacity and width attributes. The width is almost always equal to 517 and the clicks work well. Sometimes the width of the SPAN is reduced to 20px so the sensible area is very small. Is there a reason?

Thanks, regards

SteMMo33 avatar Apr 09 '19 15:04 SteMMo33

It seems it took the margin (???) .. I removed them and, so far, I have no more problems ..

SteMMo33 avatar Apr 09 '19 16:04 SteMMo33