setTimeout(resize, 3000);
});
}
+
+ if (this.fluidbook.support.IE > 9) {
+ this.watchForResize();
+ }
+ },
+
+ watchForResize: function () {
+ // from http://stackoverflow.com/questions/1248081/get-the-browser-viewport-dimensions-with-javascript
+ var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
+ var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
+
+ if ((w !== this.ww) || (h !== this.hh)) {
+ resize();
+ }
+
+ var $this=this;
+ window.setTimeout(function(){
+ $this.watchForResize();
+ }, 1000);
},
+
resize: function (init, forceOrientation) {
if (init == undefined || init == null) {
init = false;