Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
b2aa7076
Commit
b2aa7076
authored
2 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
conference: improve layout for 2 people
Change-Id: I88d67b8fef7363e3c483fe3e0719866907eaaafc GitLab:
#732
parent
a95386e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/mainview/components/ParticipantsLayoutHorizontal.qml
+1
-1
1 addition, 1 deletion
src/app/mainview/components/ParticipantsLayoutHorizontal.qml
src/app/mainview/components/ParticipantsLayoutVertical.qml
+1
-1
1 addition, 1 deletion
src/app/mainview/components/ParticipantsLayoutVertical.qml
with
2 additions
and
2 deletions
src/app/mainview/components/ParticipantsLayoutHorizontal.qml
+
1
−
1
View file @
b2aa7076
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/app/mainview/components/ParticipantsLayoutVertical.qml
+
1
−
1
View file @
b2aa7076
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment