Browse Source

Remove mobile height bump

Was causing layout issues between mobile and desktop. Couldn’t get a
good looking layout to work on both.
QGC4.4
Don Gagne 9 years ago
parent
commit
9d708e084f
  1. 2
      src/QmlControls/QGCCheckBox.qml
  2. 2
      src/QmlControls/QGCRadioButton.qml

2
src/QmlControls/QGCCheckBox.qml

@ -11,7 +11,7 @@ CheckBox { @@ -11,7 +11,7 @@ CheckBox {
style: CheckBoxStyle {
label: Item {
implicitWidth: text.implicitWidth + 2
implicitHeight: ScreenTools.isMobile ? ScreenTools.defaultFontPixelHeight * 3 * 0.75 : text.implicitHeight
implicitHeight: text.implicitHeight
baselineOffset: text.baselineOffset
Rectangle {
anchors.fill: text

2
src/QmlControls/QGCRadioButton.qml

@ -11,7 +11,7 @@ RadioButton { @@ -11,7 +11,7 @@ RadioButton {
style: RadioButtonStyle {
label: Item {
implicitWidth: text.implicitWidth + 2
implicitHeight: ScreenTools.isMobile ? ScreenTools.defaultFontPixelHeight * 3 * 0.75 : text.implicitHeight
implicitHeight: text.implicitHeight
baselineOffset: text.y + text.baselineOffset
Rectangle {
anchors.fill: text

Loading…
Cancel
Save