@@ -432,7 +432,7 @@ export default class ImageGallery extends React.Component {
432432 }
433433
434434 if ( this . _thumbnailsWrapper ) {
435- if ( this . _isThumbnailHorizontal ( ) ) {
435+ if ( this . _isThumbnailVertical ( ) ) {
436436 this . setState ( { thumbnailsWrapperHeight : this . _thumbnailsWrapper . offsetHeight } ) ;
437437 } else {
438438 this . setState ( { thumbnailsWrapperWidth : this . _thumbnailsWrapper . offsetWidth } ) ;
@@ -443,7 +443,7 @@ export default class ImageGallery extends React.Component {
443443 this . _setThumbsTranslate ( - this . _getThumbsTranslate ( currentIndex ) ) ;
444444 } ;
445445
446- _isThumbnailHorizontal ( ) {
446+ _isThumbnailVertical ( ) {
447447 const { thumbnailPosition } = this . props ;
448448 return thumbnailPosition === 'left' || thumbnailPosition === 'right' ;
449449 }
@@ -618,7 +618,7 @@ export default class ImageGallery extends React.Component {
618618
619619 if ( this . _thumbnails ) {
620620 // total scroll required to see the last thumbnail
621- if ( this . _isThumbnailHorizontal ( ) ) {
621+ if ( this . _isThumbnailVertical ( ) ) {
622622 if ( this . _thumbnails . scrollHeight <= thumbnailsWrapperHeight ) {
623623 return 0 ;
624624 }
@@ -728,7 +728,7 @@ export default class ImageGallery extends React.Component {
728728 }
729729
730730 _getThumbnailBarHeight ( ) {
731- if ( this . _isThumbnailHorizontal ( ) ) {
731+ if ( this . _isThumbnailVertical ( ) ) {
732732 return {
733733 height : this . state . gallerySlideWrapperHeight
734734 } ;
@@ -834,7 +834,7 @@ export default class ImageGallery extends React.Component {
834834 const { thumbsTranslate } = this . state ;
835835 const verticalTranslateValue = isRTL ? thumbsTranslate * - 1 : thumbsTranslate ;
836836
837- if ( this . _isThumbnailHorizontal ( ) ) {
837+ if ( this . _isThumbnailVertical ( ) ) {
838838 translate = `translate(0, ${ thumbsTranslate } px)` ;
839839 if ( useTranslate3D ) {
840840 translate = `translate3d(0, ${ thumbsTranslate } px, 0)` ;
@@ -1185,7 +1185,7 @@ export default class ImageGallery extends React.Component {
11851185 {
11861186 this . props . showThumbnails &&
11871187 < div
1188- className = { `image-gallery-thumbnails-wrapper ${ thumbnailPosition } ${ ! this . _isThumbnailHorizontal ( ) && isRTL ? 'thumbnails-wrapper-rtl' : '' } ` }
1188+ className = { `image-gallery-thumbnails-wrapper ${ thumbnailPosition } ${ ! this . _isThumbnailVertical ( ) && isRTL ? 'thumbnails-wrapper-rtl' : '' } ` }
11891189 style = { this . _getThumbnailBarHeight ( ) }
11901190 >
11911191 < div
0 commit comments