Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
af0131b6
Commit
af0131b6
authored
Aug 23, 2018
by
Don Gagne
Committed by
Lorenz Meier
Aug 24, 2018
Browse files
Better sizing of instrument panel
parent
e70b4b0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
af0131b6
...
...
@@ -39,12 +39,10 @@ Item {
QGCPalette
{
id
:
qgcPal
}
function
getPreferredInstrumentWidth
()
{
if
(
ScreenTools
.
isMobile
)
{
return
mainWindow
.
width
*
0.25
}
else
if
(
ScreenTools
.
isHugeScreen
)
{
return
mainWindow
.
width
*
0.11
}
return
ScreenTools
.
defaultFontPixelWidth
*
30
// Don't allow instrument panel to chew more than 1/4 of full window
var
defaultWidth
=
ScreenTools
.
defaultFontPixelWidth
*
30
var
maxWidth
=
mainWindow
.
width
*
0.25
return
Math
.
min
(
maxWidth
,
defaultWidth
)
}
function
_setInstrumentWidget
()
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment