mediawiki-extensions-Multim.../tests/qunit/mmv
Gergő Tisza c594a5610a Make max-height computation more stable
Instead of setting the parent's height as max height of the
<img> element, find the first parent which has a non-automatic
height (that would be .mw-mmv-image-wrapper).

With the old structure, the height of the parent element could
be determined by the height of the image, which would then be
written back into the max-height of the image, messing up the
aspect ratio. I did not see this in the wild, but it was easy
to reproduce by changing the timing of the resize handler (in
particular, I tried to call the resize handler before loading
the new resolution, to make the UI more responsive, and ran
into this problem). This cannot happen anymore now.

This also fix a bug on some browsers (IE 10, maybe iOS Safari)
where the size of the image could be slightly larger than the
available space, and the bottom of the image was obscured by
the metadata panel. I am still not sure how exactly that
happened, but it was related to the <img> parents with automatic
heights having incorrect height. After making sure the <img>
has a max-height derived from an element with non-automatic
height, I cannot reproduce the bug on IE 10 anymore.

Change-Id: I193aefc42e6d6072717643659a9e4c0c8b7c7e93
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/698
Bug: 66244
2014-06-17 21:20:00 +00:00
..
model Make License.isCc() really return booleans 2014-04-23 20:30:03 +00:00
provider Make JSHint enforce ES3 compatibility 2014-05-28 22:58:33 +00:00
routing Add routing classes 2014-04-16 12:40:17 +02:00
ui Make max-height computation more stable 2014-06-17 21:20:00 +00:00
mmv.ActionLogger.test.js Make JSHint enforce ES3 compatibility 2014-05-28 22:58:33 +00:00
mmv.bootstrap.test.js Merge "Make MediaViewer ignore images which are in 'noviewer' class" 2014-06-13 23:34:23 +00:00
mmv.Config.test.js Add functionality to check & set opt-in flag from code, also for anons 2014-06-11 01:11:12 +00:00
mmv.DurationLogger.test.js Make JSHint enforce ES3 compatibility 2014-05-28 22:58:33 +00:00
mmv.EmbedFileFormatter.test.js Use mw-mmv CSS prefix consistently for all things 2014-03-31 21:33:12 +00:00
mmv.HtmlUtils.test.js Fixes various bugs in IE 2014-04-07 22:00:11 +00:00
mmv.lightboximage.test.js Fix resize issues (Part II) 2014-02-28 10:22:21 +01:00
mmv.lightboxinterface.test.js Add "zoom" but really just view-file 2014-06-10 15:07:12 -07:00
mmv.performance.test.js Record sampling factor in EventLogging calls. 2014-05-22 09:30:37 +02:00
mmv.test.js Make JSHint enforce ES3 compatibility 2014-05-28 22:58:33 +00:00
mmv.testhelpers.js Add routing classes 2014-04-16 12:40:17 +02:00
mmv.ThumbnailWidthCalculator.test.js Fix resize issues (Part III, Fin) 2014-03-05 00:14:54 +00:00