forked from qt-creator/qt-creator
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:
@@ -46,7 +46,7 @@ Item {
|
|||||||
|
|
||||||
DropArea { // handles external drop on empty area of the view (goes to root folder)
|
DropArea { // handles external drop on empty area of the view (goes to root folder)
|
||||||
id: dropArea
|
id: dropArea
|
||||||
y: assetsView.y + assetsView.contentHeight + 5
|
y: assetsView.y + assetsView.contentHeight - assetsView.rowSpacing
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height - y
|
height: parent.height - y
|
||||||
|
|
||||||
@@ -62,7 +62,9 @@ Item {
|
|||||||
|
|
||||||
Canvas { // marker for the drop area
|
Canvas { // marker for the drop area
|
||||||
id: dropCanvas
|
id: dropCanvas
|
||||||
anchors.fill: parent
|
y: 5
|
||||||
|
width: parent.width
|
||||||
|
height: parent.height - y
|
||||||
visible: dropArea.containsDrag && root.dropSimpleExtFiles.length > 0
|
visible: dropArea.containsDrag && root.dropSimpleExtFiles.length > 0
|
||||||
|
|
||||||
onWidthChanged: dropCanvas.requestPaint()
|
onWidthChanged: dropCanvas.requestPaint()
|
||||||
|
Reference in New Issue
Block a user