Resize only gallerybox which contains resized images.
Bug: T91075
Change-Id: Idcaf22fbaabaa26c8d06f5dd0194d4ed7c7b1a60
rows = [],
$gallery = $( this );
rows = [],
$gallery = $( this );
- $gallery.children( 'li' ).each( function () {
+ $gallery.children( 'li.gallerybox' ).each( function () {
// Math.floor to be paranoid if things are off by 0.00000000001
var top = Math.floor( $( this ).position().top ),
$this = $( this );
// Math.floor to be paranoid if things are off by 0.00000000001
var top = Math.floor( $( this ).position().top ),
$this = $( this );
}
function handleResizeStart() {
}
function handleResizeStart() {
- $galleries.children( 'li' ).each( function () {
+ $galleries.children( 'li.gallerybox' ).each( function () {
var imgWidth = $( this ).data( 'imgWidth' ),
imgHeight = $( this ).data( 'imgHeight' ),
width = $( this ).data( 'width' ),
var imgWidth = $( this ).data( 'imgWidth' ),
imgHeight = $( this ).data( 'imgHeight' ),
width = $( this ).data( 'width' ),