Make file browser dialog resizable

This commit is contained in:
David Rowe 2016-05-25 11:31:39 +12:00
parent b9aa667c55
commit 66a90cc3f8
2 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@ import "fileDialog"
//FIXME implement shortcuts for favorite location
ModalWindow {
id: root
//resizable: true
resizable: true
implicitWidth: 640
implicitHeight: 480

View file

@ -18,13 +18,13 @@ Frame {
HifiConstants { id: hifi }
Rectangle {
id: modalFrame
id: frameContent
readonly property bool hasTitle: window.title != ""
anchors {
fill: parent
topMargin: -hifi.dimensions.modalDialogMargin.y - (modalFrame.hasTitle ? hifi.dimensions.modalDialogTitleHeight + 10 : 0)
topMargin: -hifi.dimensions.modalDialogMargin.y - (frameContent.hasTitle ? hifi.dimensions.modalDialogTitleHeight + 10 : 0)
leftMargin: -hifi.dimensions.modalDialogMargin.x
rightMargin: -hifi.dimensions.modalDialogMargin.x
bottomMargin: -hifi.dimensions.modalDialogMargin.y
@ -38,7 +38,7 @@ Frame {
color: hifi.colors.faintGray
Item {
visible: modalFrame.hasTitle
visible: frameContent.hasTitle
anchors.fill: parent
anchors {
topMargin: -parent.anchors.topMargin