diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2023-02-16 14:28:12 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2023-02-16 13:36:56 +0000 |
commit | 120bad0c6b9995090ba9020aeacd2d9d664ab968 (patch) | |
tree | cfe5b1aa984dbac58092d5b623c8538cfd554008 | |
parent | e36d5c495fcbc70832076794eb49bcf01fa749b9 (diff) | |
download | qt-creator-120bad0c6b9995090ba9020aeacd2d9d664ab968.tar.gz |
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>
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml index f9943c6f75..e7281a6ae9 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() |