diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js index 8f76a34ff..075d6772c 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js @@ -339,16 +339,15 @@ var GempLotrDeckBuildingUI = Class.extend({ return false; }); + var width = $(window).width(); + var height = $(window).height(); + this.infoDialog = $("
") .dialog({ autoOpen: false, closeOnEscape: true, - resizable: true, - title: "Card information", - minHeight: 80, - minWidth: 200, - width: Math.max(600, width * 0.75), - height: Math.max(300, height * 0.75) + resizable: false, + title: "Card information" }); var swipeOptions = { @@ -395,7 +394,21 @@ var GempLotrDeckBuildingUI = Class.extend({ }, displayCardInfo: function(card) { + this.infoDialog.html(""); this.infoDialog.html("