I used this code to test under the latest version of Chrome , FX and Safari. If I press the maximize button, it will fire twice in FX and Chrome, but only once in Safari. I am using Windows 7. Surprisingly, if I use Windows XP, Chrome will fire twice and FX, Safari fire once. Is it possible to guarantee it will fire twice? Thanks
$(window).resize(function() {
if (!isiPhone()) {
if ($(".viewportBinder").length){
$("#view").css('height',$(window).height());
$("#view").css('width',$(window).width());
content = element.viewport('update');
}
var h = screen.height;
var w = screen.width;
$(window).css("height",h);
$(window).css("width",w);
Book.book_position();
Book.zoom_auto();
/*
var is_firefox = navigator.userAgent.indexOf('Firefox') > -1;
var is_safari = navigator.userAgent.indexOf("Safari") > -1;
if ((is_firefox)||(is_safari))*/
alert ('test');
}
});