Commit c980c331 authored by DonLakeFlyer's avatar DonLakeFlyer

Fix implicitWidth

parent 6b10539a
...@@ -7,7 +7,7 @@ import QGroundControl.Palette 1.0 ...@@ -7,7 +7,7 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0 import QGroundControl.ScreenTools 1.0
Button { Button {
id: _rootButton id: _rootButton
property bool setupComplete: true ///< true: setup complete indicator shows as completed property bool setupComplete: true ///< true: setup complete indicator shows as completed
property bool setupIndicator: true ///< true: show setup complete indicator property bool setupIndicator: true ///< true: show setup complete indicator
property string imageResource: "/qmlimages/subMenuButtonImage.png" ///< Button image property string imageResource: "/qmlimages/subMenuButtonImage.png" ///< Button image
...@@ -17,6 +17,7 @@ Button { ...@@ -17,6 +17,7 @@ Button {
checkable: true checkable: true
implicitHeight: ScreenTools.isTinyScreen ? ScreenTools.defaultFontPixelHeight * 3.5 : ScreenTools.defaultFontPixelHeight * 2.5 implicitHeight: ScreenTools.isTinyScreen ? ScreenTools.defaultFontPixelHeight * 3.5 : ScreenTools.defaultFontPixelHeight * 2.5
implicitWidth: __panel.implicitWidth
style: ButtonStyle { style: ButtonStyle {
id: buttonStyle id: buttonStyle
......
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