25 parent::__construct( $mode );
37 protected function getVPad( $boxHeight, $thumbHeight ) {
38 return ( $this->
getThumbPadding() + $boxHeight - $thumbHeight / self::SCALE_FACTOR ) / 2;
55 $width = $this->mWidths;
59 $width = $this->mHeights * 10 + 100;
64 'width' => $width * self::SCALE_FACTOR,
65 'height' => $this->mHeights * self::SCALE_FACTOR,
71 if ( $thumbWidth < 60 * self::SCALE_FACTOR ) {
92 $imageParameters[
'override-height'] = ceil( $thumb->getHeight() /
self::SCALE_FACTOR );
100 return array(
'mediawiki.page.gallery' );