set height upon adding names

This commit is contained in:
Ryan Peters 2021-07-21 13:37:52 -04:00
parent 79c6f77a79
commit 7643361915

View File

@ -89,6 +89,9 @@
.map(u => `<span style='color: ${u.color};'>${u.name}</span>`); .map(u => `<span style='color: ${u.color};'>${u.name}</span>`);
$usersList.html(`<strong>${usersList.length} users online:</strong> ${usersList.join(', ')}`); $usersList.html(`<strong>${usersList.length} users online:</strong> ${usersList.join(', ')}`);
// set the height in case we have more than one row
setHeight();
}); });
connection.start().then(function () { connection.start().then(function () {