diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js index f7bdbc4c0..ed98a76d3 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js @@ -780,11 +780,11 @@ var GempLotrGameUI = Class.extend({ var sizeListeners = new Array(); sizeListeners[0] = { - sizeChanged: function(width, height) { - if (cardDiv.data("card").strength != null) - cardStrengthDiv.css({position: "absolute", left: width - 30 - 2 + "px", top: height - 30 - 2 + "px", width: 30, height: 30, display: ""}); + sizeChanged: function(cardElem, width, height) { + if (cardElem.data("card").strength != null) + $(".cardStrength", cardElem).css({position: "absolute", left: width - 30 - 2 + "px", top: height - 30 - 2 + "px", width: 30, height: 30, display: ""}); else - cardStrengthDiv.css({position: "absolute", left: width - 30 - 2 + "px", top: height - 30 - 2 + "px", width: 30, height: 30, display: "none"}); + $(".cardStrength", cardElem).css({position: "absolute", left: width - 30 - 2 + "px", top: height - 30 - 2 + "px", width: 30, height: 30, display: "none"}); } }; diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/jCardGroup.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/jCardGroup.js index 7d4800cc8..bfc447cef 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/jCardGroup.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/jCardGroup.js @@ -301,5 +301,5 @@ function layoutCardElem(cardElem, x, y, width, height, index) { var sizeListeners = cardElem.data("sizeListeners"); if (sizeListeners != null) for (var i = 0; i < sizeListeners.length; i++) - sizeListeners[i].sizeChanged(width, height); + sizeListeners[i].sizeChanged(cardElem, width, height); } \ No newline at end of file