is possible refresh page on browser size change? use styles create areas on page , if browser scaled down layout break.
perhaps can detect document size change jquery?
update viewing now. jquery considers bind deprecated function.
and way proximus' response works (at least in opera/chrome/firefox) polls resizing if browser sitting there. may have been due being drupal implementation. either way, appears resize function called automatically when hit location.reload(), causing hit infinite loop. here's pulled solved problem.
jquery(function($){ var windowwidth = $(window).width(); var windowheight = $(window).height(); $(window).resize(function() { if(windowwidth != $(window).width() || windowheight != $(window).height()) { location.reload(); return; } }); });
Comments
Post a Comment