Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
5b2d2459
Commit
5b2d2459
authored
Jun 27, 2017
by
Don Gagne
Committed by
GitHub
Jun 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5351 from DonLakeFlyer/SmallScreen
Small screen, fall back to font based sizing
parents
5d59889e
64ebdab5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ScreenTools.qml
src/QmlControls/ScreenTools.qml
+6
-0
No files found.
src/QmlControls/ScreenTools.qml
View file @
5b2d2459
...
...
@@ -109,6 +109,12 @@ Item {
mediumFontPointSize
=
defaultFontPointSize
*
_screenTools
.
mediumFontPointRatio
largeFontPointSize
=
defaultFontPointSize
*
_screenTools
.
largeFontPointRatio
minTouchPixels
=
Math
.
round
(
minTouchMillimeters
*
Screen
.
pixelDensity
)
if
(
minTouchPixels
/
Screen
.
height
>
0.15
)
{
// If using physical sizing takes up too much o fthe vertical real estate fall back to font based sizing
minTouchPixels
=
defaultFontPixelHeight
*
3
}
console
.
log
(
minTouchPixels
/
Screen
.
height
)
toolbarHeight
=
isMobile
?
minTouchPixels
:
defaultFontPixelHeight
*
3
}
...
...
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