added correction for overlapping text
This commit is contained in:
parent
6ef7cdea7b
commit
11ce594703
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