Gallery slideshow: Fix height calculation
authorEd Sanders <esanders@wikimedia.org>
Fri, 19 Apr 2019 12:07:37 +0000 (13:07 +0100)
committerEd Sanders <esanders@wikimedia.org>
Fri, 19 Apr 2019 18:20:47 +0000 (19:20 +0100)
commit89495c542241c45985919a125dafa0d4f2965a97
tree9e513fbab19409f9fef62875935e5ce0ca685189
parent61702397aa04572251869935245c07a0821f6c4a
Gallery slideshow: Fix height calculation

Remove $container check. This check was broken due to
recent changes in skin output (adding mw-parser-output),
and was not necessary, as the computation without it is
based on $imgContainer, which is also bound by a container.

This avoids the height being set to "NaNpx", or the full
height of the page.

Bug: T196723
Change-Id: I9b4fda9c71502bf749271c55a6945d9f4a4f913e
resources/src/mediawiki.page.gallery.slideshow.js