~tiagosh/address-book-app/fix-1234234

« back to all changes in this revision

Viewing changes to src/imports/Common/ContactDetailGroupBase.qml

  • Committer: Tarmac
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2013-10-07 19:45:20 UTC
  • mfrom: (87.3.14 fix-1234484)
  • Revision ID: tarmac-20131007194520-97sgbjk25z8pav6i
Optimized contact list expand and collapse animation. Fixes: https://bugs.launchpad.net/bugs/1234484.

Approved by Bill Filler, PS Jenkins bot, Gustavo Pichorim Boiko.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
    signal newFieldAdded(var index)
38
38
 
39
 
    implicitHeight: root.details.length > 0 ? contents.height : minimumHeight
 
39
    implicitHeight: root.details.length > 0 ? contents.implicitHeight : minimumHeight
40
40
    visible: implicitHeight > 0
41
41
 
42
42
    // This model is used to avoid rebuild the repeater every time that the details change
75
75
            right: parent.right
76
76
        }
77
77
 
78
 
        height: childrenRect.height
79
78
        Loader {
80
79
            id: headerItem
81
80
        }
84
83
            id: detailFields
85
84
 
86
85
            model: detailsModel
 
86
 
87
87
            Loader {
88
88
                id: detailItem
89
89
 
101
101
                        root.newFieldAdded(detailItem.item)
102
102
                        root.inputFields = newFields
103
103
                        if (item.focus && root.loaded) {
104
 
                            console.debug("force focus" + item + "has focus:" + item.focus)
105
104
                            item.forceActiveFocus()
106
105
                        }
107
106
                    }