Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPANs reduced width #185

Open
SteMMo33 opened this issue Apr 9, 2019 · 1 comment
Open

SPANs reduced width #185

SteMMo33 opened this issue Apr 9, 2019 · 1 comment

Comments

@SteMMo33
Copy link

SteMMo33 commented Apr 9, 2019

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
Copy link
Author

SteMMo33 commented Apr 9, 2019

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

@SteMMo33 SteMMo33 changed the title SPANs resticted SPANs shrinked Apr 9, 2019
@SteMMo33 SteMMo33 changed the title SPANs shrinked SPANs reduced width Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant