From 120bad0c6b9995090ba9020aeacd2d9d664ab968 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 16 Feb 2023 14:28:12 +0200 Subject: [PATCH] QmlDesigner: Adjust general asset drop area so that there is no gap Fixes: QDS-9039 Change-Id: Id314dff48155d453fda2ad1df2ccf8aa4061a83f Reviewed-by: Mahmoud Badri --- .../qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml index f9943c6f75c..e7281a6ae9c 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml @@ -46,7 +46,7 @@ Item { DropArea { // handles external drop on empty area of the view (goes to root folder) id: dropArea - y: assetsView.y + assetsView.contentHeight + 5 + y: assetsView.y + assetsView.contentHeight - assetsView.rowSpacing width: parent.width height: parent.height - y @@ -62,7 +62,9 @@ Item { Canvas { // marker for the drop area id: dropCanvas - anchors.fill: parent + y: 5 + width: parent.width + height: parent.height - y visible: dropArea.containsDrag && root.dropSimpleExtFiles.length > 0 onWidthChanged: dropCanvas.requestPaint()