From 01336fefd9053bd53ac9287c1f3bec44596bdc75 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Mon, 13 May 2013 09:10:47 +0200 Subject: [PATCH] Defer rendering of the messages area and roster until after we are sure that the user has actually entered the room --- converse.css | 8 +++---- converse.js | 63 ++++++++++++++++++++++++++++++++-------------------- 2 files changed, 43 insertions(+), 28 deletions(-) diff --git a/converse.css b/converse.css index e337153f3..4213c4887 100644 --- a/converse.css +++ b/converse.css @@ -17,10 +17,10 @@ img.spinner { padding: 0 5px 0 5px; } img.centered { - margin-left: auto; - margin-right: auto; - margin-top: 30%; - display: block; + position: absolute; + top: 30%; + left: 50%; + margin: 0 0 0 -25%; } #chatpanel { diff --git a/converse.js b/converse.js index 9b5444f66..8fe456f65 100644 --- a/converse.js +++ b/converse.js @@ -1038,24 +1038,39 @@ }, template: _.template( - '
' + - 'X' + - '' + - '
{{ name }}
' + - '

' + - '

' + - '
' + - '
' + - '
' + - '
' + - '