Merge branch 'clay-improvements' of https://github.com/Hextris/hextris into clay-improvements
This commit is contained in:
commit
1caf693d24
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@ function scaleCanvas() {
|
|||
|
||||
ctx.scale(window.devicePixelRatio, window.devicePixelRatio);
|
||||
}
|
||||
|
||||
var buttonOffset = $("#buttonCont").offset().top;
|
||||
var playOffset = trueCanvas.height / 2 + 100 * settings.scale;
|
||||
var delta = buttonOffset - playOffset - 29;
|
||||
if (delta < 0) {
|
||||
$("#bottomContainer").css("margin-bottom", "-" + Math.abs(delta) + "px");
|
||||
console.log("Corrected by " + delta)
|
||||
}
|
||||
}
|
||||
|
||||
function toggleDevTools() {
|
||||
|
|
Loading…
Reference in a new issue