You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In #357, when resize is called with a duration specified, a fix was applied to filter the animation to only act on visible elements. In short, this would exclude altImages which is actually OK as they don't require height/width.
However, in the unlikely event that someone using IM is relying on those elements having an explicit height/width, need to ensure 100% backwards compat and apply the css to the hidden elements as well - it just shouldn't be done using animate to ensure that jQuery doesn't make those elements visible (the issue that #357 addressed).
To Reproduce
Steps to reproduce the behavior:
Open AltImages example
Execute $('img').mapster('resize', 1000, null, 25, null) in console
Inspect HTML and width/height will not be specified on altimages
Expected behavior
Ensure width/height is specified on altimages but that they remain display==='none'
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
In #357, when
resize
is called with aduration
specified, a fix was applied to filter the animation to only act on visible elements. In short, this would exclude altImages which is actually OK as they don't require height/width.However, in the unlikely event that someone using IM is relying on those elements having an explicit height/width, need to ensure 100% backwards compat and apply the css to the hidden elements as well - it just shouldn't be done using animate to ensure that jQuery doesn't make those elements visible (the issue that #357 addressed).
To Reproduce
Steps to reproduce the behavior:
$('img').mapster('resize', 1000, null, 25, null)
in consoleExpected behavior
Ensure width/height is specified on altimages but that they remain
display==='none'
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: