Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
46e3deb7
Commit
46e3deb7
authored
Mar 08, 2022
by
Nate Graham
Browse files
ViewSelector: use a multiple of GridUnit units for implicitWidth
This lets it adjust with the font size.
parent
2a05946e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qml/ViewSelector.qml
View file @
46e3deb7
...
...
@@ -26,7 +26,7 @@ ScrollView {
viewModeView
.
ignoreCurrentItemChanges
=
false
}
implicitWidth
:
225
implicitWidth
:
Kirigami
.
Units
.
gridUnit
*
12
// HACK: workaround for https://bugreports.qt.io/browse/QTBUG-83890
ScrollBar.horizontal.policy
:
ScrollBar
.
AlwaysOff
...
...
@@ -80,7 +80,7 @@ ScrollView {
when
:
mainWindow
.
width
>=
elisaTheme
.
viewSelectorSmallSizeThreshold
PropertyChanges
{
target
:
scrollView
implicitWidth
:
225
implicitWidth
:
Kirigami
.
Units
.
gridUnit
*
12
}
},
State
{
...
...
Write
Preview
Supports
Markdown
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