Browse Source

Merge pull request #7126 from DonLakeFlyer/DropPanel

DropPane: Size/Position fixes
QGC4.4
Don Gagne 6 years ago committed by GitHub
parent
commit
a60b39e726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/QmlControls/DropPanel.qml

9
src/QmlControls/DropPanel.qml

@ -37,10 +37,7 @@ Item { @@ -37,10 +37,7 @@ Item {
readonly property real _arrowBaseHeight: radius // Height of vertical side of arrow
readonly property real _arrowPointWidth: radius * 0.666 // Distance from vertical side to point
readonly property real _dropCornerRadius: ScreenTools.defaultFontPixelWidth * 0.5
readonly property real _dropCornerRadiusX2: _dropCornerRadius * 2
readonly property real _dropMargin: _dropCornerRadius
readonly property real _dropMarginX2: _dropMargin * 2
readonly property real _dropMargin: ScreenTools.defaultFontPixelWidth
property var _dropEdgeTopPoint
property real _dropEdgeHeight
@ -74,8 +71,8 @@ Item { @@ -74,8 +71,8 @@ Item {
var panelComponentWidth = panelLoader.item.width
var panelComponentHeight = panelLoader.item.height
dropDownItem.width = panelComponentWidth + (_dropMarginX2 * 2) + _arrowPointWidth
dropDownItem.height = panelComponentHeight + (_dropMarginX2 * 2)
dropDownItem.width = panelComponentWidth + (_dropMargin * 2) + _arrowPointWidth
dropDownItem.height = panelComponentHeight + (_dropMargin * 2)
dropDownItem.x = _dropEdgeTopPoint.x + _dropMargin
dropDownItem.y = _dropEdgeTopPoint.y -(dropDownItem.height / 2) + radius

Loading…
Cancel
Save