GallerySlideshow: Always set image height, adjust according to caption size
authorPrateek Saxena <prtksxna@gmail.com>
Tue, 24 Jan 2017 09:43:56 +0000 (15:13 +0530)
committerKrinkle <krinklemail@gmail.com>
Thu, 23 Feb 2017 02:30:56 +0000 (02:30 +0000)
commit6fd414cd56d4f443b2298b97a52378d40916394e
treedddc4c730ad1216969a3d33f5554a199ac9e5e8d
parentb171822dce3fb662ca96e8fd4be48581c4cd2533
GallerySlideshow: Always set image height, adjust according to caption size

When the size of the caption changes (for example one word vs four lines) the
content below jumps because of the space the caption is taking.

We now adjust the height of the image based on the height of the caption to
avoid jumping.

Bug: T140596
Change-Id: I567652ff8b1483cef474493dd5bd790e95288b30
resources/src/mediawiki/page/gallery-slideshow.js