~mzanetti/unity8/catch-osk

« back to all changes in this revision

Viewing changes to qml/Dash/CardGrid.qml

  • Committer: CI Train Bot
  • Author(s): Andrea Cimitan
  • Date: 2016-01-29 11:52:50 UTC
  • mfrom: (2136.6.4 previews-two-columns)
  • Revision ID: ci-train-bot@canonical.com-20160129115250-stzd3hgd9x10o3z5
Dynamically  change click scope card size according to size Fixes: #1536745
Approved by: Unity8 CI Bot, Albert Astals Cid

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
DashRenderer {
21
21
    id: root
22
22
 
 
23
    readonly property real defaultMinimumHorizontalSpacing: units.gu(1)
23
24
    readonly property int collapsedRows: {
24
25
        if (!cardTool || !cardTool.template || typeof cardTool.template["collapsed-rows"] != "number") return 2;
25
26
        return cardTool.template["collapsed-rows"];
46
47
    ResponsiveGridView {
47
48
        id: grid
48
49
        anchors.fill: parent
49
 
        minimumHorizontalSpacing: units.gu(1)
 
50
        minimumHorizontalSpacing: root.defaultMinimumHorizontalSpacing
50
51
        delegateWidth: cardTool.cardWidth
51
52
        delegateHeight: cardTool.cardHeight
52
53
        verticalSpacing: units.gu(1)