mediawiki-extensions-Multim.../resources/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
..
img Icon adjustments 2014-06-09 23:03:16 +00:00
model Fix for jsduck 5.x, rearrange categories 2014-04-29 11:32:12 -07:00
provider Fix url encoding in URL guesser 2014-05-09 22:44:57 +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.js Make JSHint enforce ES3 compatibility 2014-05-28 22:58:33 +00:00
mmv.api.js
mmv.base.js Replace deprecated jQuery.browser with jQuery.client 2014-05-16 20:37:27 +02:00
mmv.bootstrap.autostart.js
mmv.bootstrap.js Merge "Make MediaViewer ignore images which are in 'noviewer' class" 2014-06-13 23:34:23 +00:00
mmv.bootstrap.less Merge "Fix CSS for hiding content" 2014-06-11 23:47:55 +00:00
mmv.Config.js Add functionality to check & set opt-in flag from code, also for anons 2014-06-11 01:11:12 +00:00
mmv.DurationLogger.js Record sampling factor in EventLogging calls. 2014-05-22 09:30:37 +02:00
mmv.EmbedFileFormatter.js Revert "Use localized namespace name in embed wikitext" 2014-06-12 01:26:10 +00:00
mmv.globals.less
mmv.head.js Add functionality to check & set opt-in flag from code, also for anons 2014-06-11 01:11:12 +00:00
mmv.HtmlUtils.js Miscellaneous fixes to truncatable text fields 2014-04-14 17:19:59 +02:00
mmv.js Add "zoom" but really just view-file 2014-06-10 15:07:12 -07:00
mmv.lightboximage.js Shuffle things around so original file sizes are easier to access 2014-04-10 01:56:38 +00:00
mmv.lightboxinterface.js Tooltips for loads of things 2014-06-12 12:27:04 -07:00
mmv.lightboxinterface.less Show metadata panel immediately. 2014-04-22 16:10:25 +00:00
mmv.loaded.css Fix CSS for hiding content 2014-06-08 02:12:11 +00:00
mmv.Logger.js Record sampling factor in EventLogging calls. 2014-05-22 09:30:37 +02:00
mmv.mixins.less
mmv.performance.js Record sampling factor in EventLogging calls. 2014-05-22 09:30:37 +02:00
mmv.ThumbnailWidthCalculator.js