denverfoundation / storybase

The code behind Floodlight
http://floodlightproject.org
MIT License
11 stars 7 forks source link

Image captions and borders not scaling to image width #622

Closed ghing closed 11 years ago

ghing commented 11 years ago

It looks like Iteration 10/Release 0.5 introduced a regression where the image captions and borders no longer get adjusted to the image widths (originally issue #469)

In some cases, the captions and frames appear overly wide.

In other cases, the width gets set to 0 by the JavaScript as in http://floodlightproject.org/stories/-51/:

Screenshot from 2013-02-13 15:11:41

This appears to be a timing related issue. In the above example, reloading the page corrects the issue.

I wasn't able to replicate this in my local instance (likely because image loading is obviously going to be way faster).

ghing commented 11 years ago

This is extremely tedious to replicate consistently. I'm thinking using https://github.com/desandro/imagesloaded for wiring our events is the way to go.

ghing commented 11 years ago

@patternleaf, FYI, these seem like the most popular tools for simulating slow connections: