QmlDesigner: Adjust general asset drop area so that there is no gap

Fixes: QDS-9039
Change-Id: Id314dff48155d453fda2ad1df2ccf8aa4061a83f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-02-16 14:28:12 +02:00
parent e36d5c495f
commit 120bad0c6b

View File

@@ -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()