Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ingame
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
ingame
Commits
5e87ac61
Commit
5e87ac61
authored
Jun 29, 2024
by
Exc404
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ScrollView
parent
3d2434b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
Game.qml
qml/delegates/Game.qml
+11
-0
GamesTab.qml
qml/tabs/GamesTab.qml
+12
-2
No files found.
qml/delegates/Game.qml
View file @
5e87ac61
...
...
@@ -92,6 +92,17 @@ C.Button {
opacity
:
1
;
}
},
State
{
name
:
""
;
PropertyChanges
{
target
:
game
;
scale
:
1
;
}
PropertyChanges
{
target
:
bgNameGrad
;
opacity
:
0
;
}
}
]
...
...
qml/tabs/GamesTab.qml
View file @
5e87ac61
...
...
@@ -15,6 +15,7 @@ ScrollView {
id
:
gamesScroller
anchors.fill
:
parent
anchors.topMargin
:
topNavigation
.
height
ScrollBar.vertical
:
ScrollBar
{
id
:
scrolV
;
height
:
parent
.
height
...
...
@@ -50,11 +51,12 @@ ScrollView {
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
columns
:
5
rows
:
Math
.
max
(
Math
.
ceil
(
children
.
length
/
columns
),
1
)
rows
:
Math
.
max
(
Math
.
ceil
(
children
.
length
/
columns
),
1
)
+
1
anchors.rightMargin
:
rowSpacing
*
2
anchors.leftMargin
:
rowSpacing
*
2
anchors.bottomMargin
:
90
anchors.topMargin
:
Math
.
floor
(
gamesScroller
.
width
/
100
*
3
)
rowSpacing
:
Math
.
floor
(
gamesScroller
.
width
/
100
*
3
)
columnSpacing
:
rowSpacing
...
...
@@ -71,7 +73,7 @@ ScrollView {
gameIcon
:
model
.
icon
Layout.bottomMargin
:
(
index
-
index
%
gamesGrid
.
columns
)
/
gamesGrid
.
columns
===
gamesGrid
.
rows
-
1
?
gamesGrid
.
rowSpacing
*
2
:
0
gamesGrid
.
columns
===
gamesGrid
.
rows
-
2
?
gamesGrid
.
rowSpacing
*
2
:
0
onFocusChanged
:
if
(
focus
)
{
gamesScroller
.
scrollToY
(
y
);
}
...
...
@@ -106,6 +108,14 @@ ScrollView {
// Layout.topMargin: Layout.preferredHeight
}
}
Rectangle
{
Layout.preferredWidth
:
1
Layout.preferredHeight
:
1
color
:
"red"
opacity
:
0
}
}
...
...
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