Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Fixed the response image width=0 bug when data-width is not set - #83

Merged
thom4parisot merged 4 commits into
masterfrom
fix-83
Mar 20, 2014
Merged

Fixed the response image width=0 bug when data-width is not set#83
thom4parisot merged 4 commits into
masterfrom
fix-83

Conversation

@thom4parisot

Copy link
Copy Markdown
Contributor

Example here: http://lab.gasteroprod.com/imager/ex01/

The container width has to be explicitly set to 100% for example.

Imager should at least pick 320 if the width is not properly picked up.

Props of @nhoizey

@thom4parisot thom4parisot modified the milestones: 0.2.0 - Features Improvements, 0.3.0 - Lazyloading Stability Feb 21, 2014
@drwlrsn

drwlrsn commented Feb 26, 2014

Copy link
Copy Markdown

This threw me for a loop yesterday. :(

@e-chapin

Copy link
Copy Markdown

This threw me for a loop as well.

@thom4parisot thom4parisot modified the milestones: 0.3.0 – Convenience features, 0.3.0 - Lazyloading Stability Mar 17, 2014
@thom4parisot

Copy link
Copy Markdown
Contributor Author

With this PR the image width attribute is set only when it's set.

This way the container is driving the image sizing, unless you really want to force it.

Let me know if that works for you, especially @nhoizey :-)

thom4parisot pushed a commit that referenced this pull request Mar 20, 2014
Image width is set as 0 sometimes
@thom4parisot
thom4parisot merged commit 6be8065 into master Mar 20, 2014
@thom4parisot
thom4parisot deleted the fix-83 branch March 20, 2014 10:09
@thom4parisot thom4parisot changed the title Image width is set as 0 sometimes Fixed the response image width=0 bug when data-width is not set Mar 20, 2014
@nhoizey

nhoizey commented Mar 20, 2014

Copy link
Copy Markdown

Seems to work well! \o/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants