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:
parent
b88aab25d9
commit
f998e5be0a
4 changed files with 38 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue