Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 1 402: | Rivi 1 402: | ||
jQuery( window ).resize(function() { | jQuery( window ).resize(function() { | ||
− | + | console.log( 'resize to be triggered' ); | |
− | setTimeout( function() { doResize( memo ); }, 100 ); | + | setTimeout( function() { console.log( 'resize triggered' ); doResize( memo ); }, 100 ); |
}); | }); | ||
Rivi 1 418: | Rivi 1 418: | ||
function doResize( memo ) { | function doResize( memo ) { | ||
− | + | console.log( 'risizing' ); | |
var w = memo.chartEl.width(); | var w = memo.chartEl.width(); | ||
var h = memo.chartEl.height(); | var h = memo.chartEl.height(); |