~elopio/unity8/fix1335548-click_scope_item

« back to all changes in this revision

Viewing changes to qml/Dash/CardVerticalJournal.qml

  • Committer: Leo Arias
  • Date: 2014-07-10 14:13:39 UTC
  • mfrom: (973.1.63 unity8)
  • Revision ID: leo.arias@canonical.com-20140710141339-hep6nmh2jdqq9pa3
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    // is special by the fact that it doesn't know how to calculate its implicit height unless we give it
32
32
    // enough height that it can start creating its children so we make sure it has enough height for that
33
33
    // in case the model is non empty
34
 
    readonly property double minHeight: root.model.count > 1 ? cardVerticalJournal.rowSpacing + 1 : 0
 
34
    readonly property double minHeight: root.model.count >= 1 ? cardVerticalJournal.rowSpacing + 1 : 0
35
35
    height: filtered ? Math.max(collapsedHeight, minHeight) : uncollapsedHeight
36
36
 
37
37
    Behavior on height {
75
75
                item.template = Qt.binding(function() { return cardTool.template; });
76
76
                item.components = Qt.binding(function() { return cardTool.components; });
77
77
                item.headerAlignment = Qt.binding(function() { return cardTool.headerAlignment; });
 
78
                item.scopeStyle = root.scopeStyle;
78
79
            }
79
80
            Connections {
80
81
                target: loader.item