Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add callback to redo scrollbar size for when isotope is finished adjusting

Taylor Gunnoef52fccaeb2db
diff --git a/web/js/layers/wv.layers.modal.js b/web/js/layers/wv.layers.modal.js
index 3344aa211..4cf711a7b 100644
--- a/web/js/layers/wv.layers.modal.js
+++ b/web/js/layers/wv.layers.modal.js
@@ -710,11 +710,13 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
redo();
if( $categories.data('isotope') ) {
- $categories.isotope();
+ $categories.isotope()
+ .on('layoutComplete',
+ function( event, laidOutItems ) {
+ redoScrollbar();
+ });
}
- redoScrollbar();
-
$( ".ui-widget-overlay" ).click( function( e ) {
$( self.selector ).dialog( "close" );
} );