From: Alan Knowles Date: Tue, 13 Aug 2013 07:28:56 +0000 (+0800) Subject: Pman.Dialog.Image.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=7367d1d97e586e4ab8c8e7f1938279a779f361a3 Pman.Dialog.Image.bjs Pman.Dialog.Image.js --- diff --git a/Pman.Dialog.Image.bjs b/Pman.Dialog.Image.bjs index bb954b0d..59e81f51 100644 --- a/Pman.Dialog.Image.bjs +++ b/Pman.Dialog.Image.bjs @@ -7,7 +7,7 @@ "items": [ { "listeners": { - "show": "function (_self)\n{\n // this does not really work - escape on the borders works..\n if (this.keylistener) {\n return;\n }\n this.keylistener = this.addKeyListener(27, this.hide, this);\n \n}" + "show": "function (_self)\n{\n\n // this does not really work - escape on the borders works..\n // resize to fit.. if we have styled stuff...\n \n \n if (this.keylistener) {\n return;\n }\n this.keylistener = this.addKeyListener(27, this.hide, this);\n \n}" }, "closable": false, "collapsible": false, diff --git a/Pman.Dialog.Image.js b/Pman.Dialog.Image.js index 0a5b55fc..d003d938 100644 --- a/Pman.Dialog.Image.js +++ b/Pman.Dialog.Image.js @@ -33,7 +33,11 @@ Pman.Dialog.Image = { listeners : { show : function (_self) { + // this does not really work - escape on the borders works.. + // resize to fit.. if we have styled stuff... + + if (this.keylistener) { return; }