From 81e01211148f84aa30a5c20b2b79588c3ef012c4 Mon Sep 17 00:00:00 2001
From: Nate Weibley <nate.weibley@prioria.com>
Date: Mon, 23 Nov 2015 15:18:41 -0500
Subject: [PATCH] Reflow flight mode layout even when joystick control is
 enabled

---
 src/AutoPilotPlugins/PX4/FlightModesComponent.qml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/AutoPilotPlugins/PX4/FlightModesComponent.qml b/src/AutoPilotPlugins/PX4/FlightModesComponent.qml
index d34f6ea..12e57a9 100644
--- a/src/AutoPilotPlugins/PX4/FlightModesComponent.qml
+++ b/src/AutoPilotPlugins/PX4/FlightModesComponent.qml
@@ -136,10 +136,9 @@ QGCView {
         running:    true
 
         onTriggered: {
+            recalcModePositions()
             if (rcInMode.value == 1) {
                 showDialog(joystickEnabledDialogComponent, title, 50, 0)
-            } else {
-                recalcModePositions()
             }
         }
     }