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

allow options to disable features that may conflict with other plugins #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vincentcalabro
Copy link

Ability to disable the built in resize feature, and the use of image attr for image size. example usage:

$('img[usemap]').rwdImageMaps({
useImgDimensionAttrs: false,
triggerOnResize: false
});

@stowball
Copy link
Owner

I don't understand. Why would you want to disable either of these things?

What conflicts are you experiencing?

@vincentcalabro
Copy link
Author

I'm using a slider (royalSlider: http://dimsemenov.com/plugins/royal-slider/) and with certain settings, it will add or update width and height attr's of images when scaling down to fit the screen size. So this is no longer an accurate value for the original image size. I may be more interested in updating this slider plugin, but seems having the option to not look at the image attr would be beneficial in some cases.

Regarding the resize feature, for some reason it did not work. We have a resize function with timer in our codebase that we use often, so I implemented that and had to turn off the one in your plugin. Again, just having the option would be convenient.

@grimdesigns
Copy link

I am trying to use http://davidlynch.org/projects/maphilight/docs/ (map hilight) to highlight my image maps but it is conflicting with rwdImageMaps. Any suggestions would be great.

Thanks

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

Successfully merging this pull request may close these issues.

None yet

3 participants