Skip to content

Commit 9264bb5

Browse files
author
cristian-ungureanu
authored
Merge pull request #848 from Codeinwp/bugfix/847
Fix chart landscape view issue in mobile
2 parents ce24700 + 09d6a11 commit 9264bb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/render-google.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@ var __visualizer_chart_images = [];
423423
$( '.visualizer-hidden-container' ).find(".visualizer-front:not(.visualizer-chart-loaded)").resize();
424424
}, 500 );
425425
}
426+
427+
$( window ).on( 'orientationchange', function( event ) {
428+
$( '.visualizer-chart-loaded' ).removeClass( 'visualizer-chart-loaded' );
429+
} );
426430
});
427431

428432
$(window).on('load', function(){

0 commit comments

Comments
 (0)