1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Added windowBounds, enqueue checks after render

This commit is contained in:
Fred Chasen 2015-05-25 20:30:07 -04:00
parent b88aab25d9
commit f998e5be0a
4 changed files with 38 additions and 26 deletions

View file

@ -483,4 +483,20 @@ EPUBJS.core.borders = function(el) {
width: width
}
};
EPUBJS.core.windowBounds = function() {
var width = window.innerWidth;
var height = window.innerHeight;
return {
top: 0,
left: 0,
right: width,
bottom: height,
width: width,
height: height
}
};