forked from GithubMirrors/cardconjurer
		
	Update life.js
This commit is contained in:
		| @@ -78,20 +78,20 @@ function startGame() { | |||||||
| 	if (playerCount == 2 || playerCount == 4) { | 	if (playerCount == 2 || playerCount == 4) { | ||||||
| 		rowCount -= 1 | 		rowCount -= 1 | ||||||
| 	} | 	} | ||||||
|     console.log("Row count: " + rowCount) | //    console.log("Row count: " + rowCount) | ||||||
| 	if (isFullscreen) { | 	if (isFullscreen) { | ||||||
| 		rowHeight = screen.height / rowCount - 2 | 		rowHeight = screen.height / rowCount - 2 | ||||||
|         console.log("Full screen, rowHeight: " + rowHeight) | //        console.log("Full screen, rowHeight: " + rowHeight) | ||||||
|         console.log("screen.height: " + screen.height) | //        console.log("screen.height: " + screen.height) | ||||||
| 	} else { | 	} else { | ||||||
|         var heightToUse = window.innerHeight |         var heightToUse = window.innerHeight | ||||||
|         if (document.documentElement.clientHeight > heightToUse) { |         if (document.documentElement.clientHeight > heightToUse) { | ||||||
|             console.log("document.documentElement.clientHeight: " + document.documentElement.clientHeight) | //            console.log("document.documentElement.clientHeight: " + document.documentElement.clientHeight) | ||||||
|             heightToUse = document.documentElement.clientHeight |             heightToUse = document.documentElement.clientHeight | ||||||
|         } |         } | ||||||
| 		rowHeight = heightToUse / rowCount - 2 | 		rowHeight = heightToUse / rowCount - 2 | ||||||
|         console.log("Not full screen, rowHeight: " + rowHeight) | //        console.log("Not full screen, rowHeight: " + rowHeight) | ||||||
|         console.log("window.innerHeight: " + window.innerHeight) | //        console.log("window.innerHeight: " + window.innerHeight) | ||||||
| 	} | 	} | ||||||
| 	//Now that all the player boxes are made, they must be configured | 	//Now that all the player boxes are made, they must be configured | ||||||
| 	for (var i = 1; i <= playerCount; i++) { | 	for (var i = 1; i <= playerCount; i++) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle