Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
244d0a47
Commit
244d0a47
authored
Jan 29, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix screenshots display when there's few screenshots
Make sure we don't divide by 0
parent
d2eb6c6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
discover/qml/ApplicationScreenshots.qml
discover/qml/ApplicationScreenshots.qml
+1
-1
No files found.
discover/qml/ApplicationScreenshots.qml
View file @
244d0a47
...
...
@@ -142,7 +142,7 @@ ListView {
layer.effect
:
ShaderEffect
{
readonly
property
var
colorSource
:
root
;
readonly
property
real
distLeft
:
Math
.
max
(
20
,
2000
/
(
root
.
contentX
+
1
)
-
1
)
readonly
property
real
distRight
:
Math
.
max
(
20
,
2000
/
Math
.
max
(
0
,
root
.
contentWidth
-
(
root
.
contentX
+
root
.
width
)
+
1
)
-
1
)
readonly
property
real
distRight
:
Math
.
max
(
20
,
2000
/
Math
.
max
(
1
,
root
.
contentWidth
-
(
root
.
contentX
+
root
.
width
)
+
1
)
-
1
)
fragmentShader
:
"
uniform lowp float distLeft;
uniform lowp float distRight;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment