Skip to content

Commit 2ebe16d

Browse files
odeimaizCopilot
andauthored
Update services/static-webserver/client/source/class/osparc/ui/basic/AvatarGroup.js
Co-authored-by: Copilot <[email protected]>
1 parent 470c0b2 commit 2ebe16d

File tree

1 file changed

+1
-1
lines changed
  • services/static-webserver/client/source/class/osparc/ui/basic

1 file changed

+1
-1
lines changed

services/static-webserver/client/source/class/osparc/ui/basic/AvatarGroup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ qx.Class.define("osparc.ui.basic.AvatarGroup", {
3333

3434
this.__avatarSize = size;
3535
this.__orientation = orientation;
36-
this.__maxVisible = Math.floor(maxWidth/size) - 1; // Reserve space for the extra avatar
36+
this.__maxVisible = Math.max(1, Math.floor(maxWidth/size) - 1); // Ensure at least 1 visible avatar
3737

3838
this.__isPointerInside = false;
3939
this.__onGlobalPointerMove = this.__onGlobalPointerMove.bind(this);

0 commit comments

Comments
 (0)