Unverified Commit a60b39e7 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #7126 from DonLakeFlyer/DropPanel

DropPane: Size/Position fixes
parents b9e81086 b60eef46
......@@ -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 {
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
......
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