Commit 2cd805b3 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #5667 from mavlink/increase_max_instrument_width

FlightDisplayViewWidgets: increase the maximum widget size from 200 to 400
parents 32c16455 e738f251
...@@ -42,8 +42,7 @@ Item { ...@@ -42,8 +42,7 @@ Item {
if(ScreenTools.isMobile) { if(ScreenTools.isMobile) {
return ScreenTools.isTinyScreen ? mainWindow.width * 0.2 : mainWindow.width * 0.15 return ScreenTools.isTinyScreen ? mainWindow.width * 0.2 : mainWindow.width * 0.15
} }
var w = mainWindow.width * 0.15 return ScreenTools.defaultFontPixelWidth * 30
return Math.min(w, 200)
} }
function _setInstrumentWidget() { function _setInstrumentWidget() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment