Skip to content
Snippets Groups Projects
Verified Commit 686cade0 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix some undefined variables in the UploadBox

parent 2c53789d
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ Page {
}
delegate: Pane {
id: pane
height: uploadPopup.availableHeight - buttons.height - (scr.visible ? scr.height : 0)
padding: Nheko.paddingSmall
width: uploadPopup.availableHeight - buttons.height
......@@ -63,8 +64,8 @@ Page {
mipmap: true
smooth: true
source: (modelData.thumbnail != "") ? modelData.thumbnail : ("image://colorimage/:/icons/icons/ui/" + typeStr + ".svg?" + palette.buttonText)
sourceSize.height: parent.availableHeight - namefield.height
sourceSize.width: parent.availableWidth
sourceSize.height: pane.availableHeight - namefield.height
sourceSize.width: pane.availableWidth
}
MatrixTextField {
id: namefield
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment