From 2636398e60fefc2fd21bc8ead70af004cd36aca8 Mon Sep 17 00:00:00 2001 From: Thalpy <33956696+Thalpy@users.noreply.github.com> Date: Tue, 29 Oct 2019 03:50:49 +0000 Subject: [PATCH] WEBEDITS --- code/modules/tooltip/tooltip.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/tooltip/tooltip.html b/code/modules/tooltip/tooltip.html index 3e2f26a09f..3cab68da6a 100644 --- a/code/modules/tooltip/tooltip.html +++ b/code/modules/tooltip/tooltip.html @@ -122,8 +122,8 @@ //Get the real icon size according to the client view var mapWidth = map['view-size'].x, mapHeight = map['view-size'].y, - tilesShown = tooltip.client_view_w - realIconSize = mapWidth / tilesShown, + tilesShown = tooltip.client_view_h + realIconSize = mapHeight / tilesShown, resizeRatio = realIconSize / tooltip.tileSize, //Calculate letterboxing offsets leftOffset = (map.size.x - mapWidth) / 2,