diff --git a/linphone-app/ui/modules/Linphone/Camera/CameraView.qml b/linphone-app/ui/modules/Linphone/Camera/CameraView.qml index 6fc633376..b65f68e48 100644 --- a/linphone-app/ui/modules/Linphone/Camera/CameraView.qml +++ b/linphone-app/ui/modules/Linphone/Camera/CameraView.qml @@ -48,7 +48,7 @@ Item{ IncallAvatar { participantDeviceModel: mainItem.currentDevice - height: Utils.computeAvatarSize(mainItem, CallStyle.container.avatar.maxSize) + height: Utils.computeAvatarSize(backgroundArea, CallStyle.container.avatar.maxSize) width: height backgroundColor: CameraViewStyle.inAvatarBackgroundColor } diff --git a/linphone-app/ui/scripts/Utils/utils.js b/linphone-app/ui/scripts/Utils/utils.js index 098a4b961..a2928f096 100644 --- a/linphone-app/ui/scripts/Utils/utils.js +++ b/linphone-app/ui/scripts/Utils/utils.js @@ -743,8 +743,8 @@ function write (fileName, text) { } function computeAvatarSize (container, maxSize) { - var height = container.height - var width = container.width + var height = 2*container.height/3 + var width = 2*container.width/3 var size = height < maxSize && height > 0 ? height : maxSize return size < width ? size : width