diff --git a/src/QmlControls/DropPanel.qml b/src/QmlControls/DropPanel.qml index b764d9fe4c3c9e331f1ae38c4a237405c0202070..7e1ef2a145c2b5c52ecd9cddb91ce4f7efcd7de3 100644 --- a/src/QmlControls/DropPanel.qml +++ b/src/QmlControls/DropPanel.qml @@ -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