Fix Asset Browser add-to-world drop-down

This commit is contained in:
David Rowe 2016-10-12 20:08:33 +13:00
parent ee31e3b896
commit 86f6cee2ad
2 changed files with 7 additions and 1 deletions

View file

@ -32,6 +32,8 @@ FocusScope {
readonly property ComboBox control: comboBox
signal accepted();
implicitHeight: comboBox.height;
focus: true
@ -134,6 +136,7 @@ FocusScope {
function hideList() {
popup.visible = false;
scrollView.hoverEnabled = false;
root.accepted();
}
FocusScope {

View file

@ -224,7 +224,10 @@ ModalWindow {
bottom: parent.bottom;
}
model: root.comboBox ? root.comboBox.items : [];
onCurrentTextChanged: updateCheckbox();
onAccepted: {
updateCheckbox();
focus = true;
}
}
}