mediawiki-extensions-Multim.../resources/mmv/ui
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 Merge "Updated chevron icons" 2014-06-16 09:45:09 +00:00
mmv.ui.canvas.js Make max-height computation more stable 2014-06-17 21:20:00 +00:00
mmv.ui.canvas.less
mmv.ui.canvasButtons.js Tooltips for loads of things 2014-06-12 12:27:04 -07:00
mmv.ui.canvasButtons.less Add "zoom" but really just view-file 2014-06-10 15:07:12 -07:00
mmv.ui.categories.js
mmv.ui.categories.less
mmv.ui.description.js
mmv.ui.fileUsage.js
mmv.ui.fileUsage.less
mmv.ui.js Tooltips for loads of things 2014-06-12 12:27:04 -07:00
mmv.ui.metadataPanel.js Tooltips for loads of things 2014-06-12 12:27:04 -07:00
mmv.ui.metadataPanel.less Extract metadata panel scroll/log/animate logic into separate component 2014-05-13 18:57:38 +00:00
mmv.ui.metadataPanelScroller.js Tooltips for loads of things 2014-06-12 12:27:04 -07:00
mmv.ui.metadataPanelScroller.less Toggle metadata panel on up/down keypress 2014-06-10 20:10:42 +00:00
mmv.ui.permission.js Record sampling factor in EventLogging calls. 2014-05-22 09:30:37 +02:00
mmv.ui.permission.less
mmv.ui.progressBar.js Refactor progressbar & blur handling 2014-05-01 21:09:28 +00:00
mmv.ui.progressBar.less Bigger, badder, animated progress bar 2014-04-22 15:16:56 -07:00
mmv.ui.reuse.dialog.js Prioritize download 2014-05-29 10:45:51 +02:00
mmv.ui.reuse.dialog.less Fix "use this file" arrow CSS for RTL 2014-04-30 16:28:18 +02:00
mmv.ui.reuse.download.js Merge "Use original URL when setting download for original" 2014-06-09 18:34:38 +00:00
mmv.ui.reuse.download.less Make preview link more prominent 2014-06-12 11:07:47 -07:00
mmv.ui.reuse.embed.js Fix text selection behavior in reuse panel 2014-05-21 22:00:46 +00:00
mmv.ui.reuse.embed.less Adjust OOjs UI TextInputWidget text style 2014-04-11 22:55:50 +00:00
mmv.ui.reuse.share.js Fix the share/download patch 2014-06-04 23:32:52 +00:00
mmv.ui.reuse.share.less Adjust OOjs UI TextInputWidget text style 2014-04-11 22:55:50 +00:00
mmv.ui.reuse.shareembed.less
mmv.ui.reuse.tab.js Fix text selection behavior in reuse panel 2014-05-21 22:00:46 +00:00
mmv.ui.reuse.utils.js
mmv.ui.stripeButtons.js Tooltips for loads of things 2014-06-12 12:27:04 -07:00
mmv.ui.stripeButtons.less Show a fallback repo icon for the "go to file page" button 2014-04-10 19:09:28 +00:00
mmv.ui.truncatableTextField.js Miscellaneous fixes to truncatable text fields 2014-04-14 17:19:59 +02:00
mmv.ui.truncatableTextField.less