From 07108cef8163d9394fde478c4502510d5726dd48 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 12 Mar 2016 11:29:38 +0000 Subject: [PATCH] Stop message dialogs jumping around when opened --- src/gui/html/elements/loot-message-dialog.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/html/elements/loot-message-dialog.html b/src/gui/html/elements/loot-message-dialog.html index fb905684..906979ef 100644 --- a/src/gui/html/elements/loot-message-dialog.html +++ b/src/gui/html/elements/loot-message-dialog.html @@ -65,6 +65,11 @@ was pressed. this.getElementsByClassName('message')[0].textContent = text; this.closeCallback = closeCallback; + + // This is necessary to prevent the dialog position changing when it is + // displayed. + Polymer.dom.flush(); // eslint-disable-line new-cap, no-undef + this.$.dialog.open(); },