mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 03:53:34 +02:00
Handle no users able to be displayed, insufficient screen height
This commit is contained in:
parent
ba1a7c6761
commit
98c88aab04
1 changed files with 3 additions and 3 deletions
|
@ -89,11 +89,11 @@ var usersWindow = (function () {
|
|||
if (isMirrorDisplay && !isFullscreenMirror) {
|
||||
maxWindowHeight -= MIRROR_HEIGHT;
|
||||
}
|
||||
windowHeight = Math.min(windowHeight, maxWindowHeight);
|
||||
windowHeight = Math.max(Math.min(windowHeight, maxWindowHeight), nonUsersHeight);
|
||||
|
||||
// Corresponding number of users to actually display
|
||||
numUsersToDisplay = Math.round((windowHeight - nonUsersHeight) / windowLineHeight);
|
||||
isUsingScrollbars = numUsersToDisplay < linesOfUsers.length;
|
||||
numUsersToDisplay = Math.max(Math.round((windowHeight - nonUsersHeight) / windowLineHeight), 0);
|
||||
isUsingScrollbars = 0 < numUsersToDisplay && numUsersToDisplay < linesOfUsers.length;
|
||||
}
|
||||
|
||||
function updateOverlayPositions() {
|
||||
|
|
Loading…
Reference in a new issue