Stop message dialogs jumping around when opened

This commit is contained in:
Oliver Hamlet
2016-03-12 11:29:38 +00:00
parent 2174bb6063
commit 07108cef81
@@ -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();
},