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

Tint - "max-width:auto" is not working #90

Open
ghost opened this issue Oct 2, 2017 · 2 comments
Open

Tint - "max-width:auto" is not working #90

ghost opened this issue Oct 2, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 2, 2017

self.zoomTintImage = $('<img style="' +
                   'position: absolute;' +
                   'top: 0px;' +
                   'left: 0px;' +
                   'height: ' + self.nzHeight + 'px;' +
                   'width: ' + self.nzWidth + 'px; "' +           // <--- quotation mark should be in the next line
                   'max-width: none; ' +
                   'src="' + self.$elem.attr('src') + '">')      
                       .appendTo(self.zoomLens)
                       .click(function () {
                           self.$elem.trigger('click');
                       });
@igorlino
Copy link
Owner

nice eyes 👍

@igorlino
Copy link
Owner

I think you have a older version of the plugin. Could you cross-check your issue against the latest code?

The newer version looks like this:

//if tint enabled - set an image to show over the tint

                    self.zoomTintImage = $('<img src="' + self.$elem.attr('src') + '">')
                        .css({
                            position: 'absolute',
                            top: 0,
                            left: 0,
                            height: self.nzHeight,
                            width: self.nzWidth,
                            maxWidth: 'none'
                        })
                        .appendTo(self.zoomLens)
                        .click(function () {
                            self.$elem.trigger('click');
                        });

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