Changeset 5084
- Timestamp:
- Aug 28, 2009, 1:50:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.13-stable/www/include/scripts/main.js
r5082 r5084 63 63 if (wLeft == undefined) wLeft = 0; 64 64 65 var wHeight = window.innerHeight; 66 if (wHeight == undefined) wHeight = document.body.clientHeight; 67 if (wHeight == undefined) wHeight = screen.height; 68 69 var wWidth = window.innerWidth; 70 if (wWidth == undefined) wWidth = document.body.clientWidth; 71 if (wWidth == undefined) wWidth = screen.width; 72 65 var wHeight = this.getWindowHeight(); 66 var wWidth = this.getWindowWidth(); 67 73 68 var top = Math.ceil(wTop+(wHeight-height) / 2); 74 69 var left = Math.ceil(wLeft+(wWidth-width) / 2);
Note: See TracChangeset
for help on using the changeset viewer.