mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 22:35:45 +02:00
conference: improve layout for 2 people
Change-Id: I88d67b8fef7363e3c483fe3e0719866907eaaafc GitLab: #732
This commit is contained in:
parent
a95386e5a4
commit
b2aa7076bb
2 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ SplitView {
|
|||
property int columns: {
|
||||
if (inLine)
|
||||
return 1
|
||||
var ratio = Math.floor(root.width / root.height)
|
||||
var ratio = Math.round(root.width / root.height)
|
||||
// If ratio is 2 we can have 2 times more elements on each columns
|
||||
var wantedCol = Math.max(1, Math.round(Math.sqrt(commonParticipants.count) * ratio))
|
||||
var cols = Math.min(commonParticipants.count, wantedCol)
|
||||
|
|
|
@ -137,7 +137,7 @@ SplitView {
|
|||
property int columns: {
|
||||
if (inLine)
|
||||
return commonParticipants.count
|
||||
var ratio = Math.floor(root.width / root.height)
|
||||
var ratio = Math.round(root.width / root.height)
|
||||
// If ratio is 2 we can have 2 times more elements on each columns
|
||||
var wantedCol = Math.max(1, Math.round(Math.sqrt(commonParticipants.count) * ratio))
|
||||
var cols = Math.min(commonParticipants.count, wantedCol)
|
||||
|
|
Loading…
Add table
Reference in a new issue