on xenial help sign in
Make cardWidth and cardHeight real
d6e0280Albert Astals Cid
qml/Dash/CardTool.qml+3−2
@@ -80,7 +80,8 @@ Item {
80
80
81 If undefined, should use implicit width of the actual card.
81 If undefined, should use implicit width of the actual card.
82 */
82 */
83− property var cardWidth: {
83+ property real cardWidth: {
84+ console.log("Evaluating cardWidth of", cardTool);
84 switch (categoryLayout) {
85 switch (categoryLayout) {
85 case "grid":
86 case "grid":
86 case "vertical-journal":
87 case "vertical-journal":
@@ -115,7 +116,7 @@ Item {
115
116
116 If undefined, should use implicit height of the actual card.
117 If undefined, should use implicit height of the actual card.
117 */
118 */
118− readonly property var cardHeight: {
119+ readonly property real cardHeight: {
119 switch (categoryLayout) {
120 switch (categoryLayout) {
120 case "journal":
121 case "journal":
121 if (template["card-size"] >= 12 && template["card-size"] <= 38) return units.gu(template["card-size"]);
122 if (template["card-size"] >= 12 && template["card-size"] <= 38) return units.gu(template["card-size"]);