Skip to content

Conversation

@mvsusp
Copy link

@mvsusp mvsusp commented May 23, 2015

  • The library should no be responsible to resize the component.

- The library should no be responsible to resize the component.
@teleject
Copy link
Owner

teleject commented Jun 7, 2015

@mvsusp can you clarify or describe what happens in Safari that happens with the existing code?

@Seneral
Copy link

Seneral commented Jan 28, 2017

@teleject Have the same problem @mvsusp seems to have removed these lines for.

When you resize the browser window, the images loaded with hiSrc experience strange stretching artifacts im my case. Here's a gif showing the problem ('wrong behaviour'):
hisrcresizedproblem
Reloading the page resets the images of course, but when resizing again it's still stretched.
This seems to be caused by the added width and height attributes after loading, which are specified with fixed pixels and overwrite the relative css width and height properties (but not maxWidth = 100%, hence the stretching here).
Removing these lines fixed the problem and yields the 'fixed behaviour'.

You might consider removing them too, but I can't test in Safari to see what they are supposed to fix, unfortunately. Any chance you can work around that? For now I'll simply comment these lines.
Thanks!

@mvsusp
Copy link
Author

mvsusp commented Feb 9, 2017

@Seneral is right @teleject. That is the same issue that I experienced.

@teleject
Copy link
Owner

teleject commented Feb 9, 2017

Cool. Thanks for the clarification, @Seneral and @mvsusp. Will look into it when I get a moment and more than likely update the code!

@mvsusp
Copy link
Author

mvsusp commented Feb 9, 2017 via email

@Seneral
Copy link

Seneral commented Feb 9, 2017

Great, thanks!

Also made some other changes #8 since then which solves some implementation issues of the speed test.
Did some other changes too though which may be my mere own opinion, but seem alot more apropriate to me;)

@teleject teleject merged commit 6d7acb0 into teleject:master Mar 29, 2017
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.

3 participants