Ubuntu Pastebin

Paste from cimi at Mon, 7 Mar 2016 14:29:11 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
=== modified file 'plugins/Dash/CardCreator.js'
--- plugins/Dash/CardCreator.js	2016-03-07 12:39:23 +0000
+++ plugins/Dash/CardCreator.js	2016-03-07 14:28:53 +0000
@@ -863,20 +863,18 @@
         var socialAnchors;
         var socialTopAnchor;
 
-        if (hasSummary) {
-            socialTopAnchor = 'summary.bottom;';
-        } else {
-            if (isHorizontal && hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
-            else if (headerAsOverlay && hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
-            else if (hasHeaderRow) socialTopAnchor = 'row.bottom;';
-            else if (hasTitleContainer) socialTopAnchor = 'headerTitleContainer.bottom;';
-            else if (hasMascot) socialTopAnchor = 'mascotImage.bottom;';
-            else if (hasAttributes) socialTopAnchor = 'attributesRow.bottom;';
-            else if (hasSubtitle) socialTopAnchor = 'subtitleLabel.bottom;';
-            else if (hasTitle) socialTopAnchor = 'titleLabel.bottom;';
-            else if (hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
-            else socialTopAnchor = 'parent.top';
-        }
+        if (hasSummary) socialTopAnchor = 'summary.bottom;';
+        else if (isHorizontal && hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
+        else if (headerAsOverlay && hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
+        else if (hasHeaderRow) socialTopAnchor = 'row.bottom;';
+        else if (hasTitleContainer) socialTopAnchor = 'headerTitleContainer.bottom;';
+        else if (hasMascot) socialTopAnchor = 'mascotImage.bottom;';
+        else if (hasAttributes) socialTopAnchor = 'attributesRow.bottom;';
+        else if (hasSubtitle) socialTopAnchor = 'subtitleLabel.bottom;';
+        else if (hasTitle) socialTopAnchor = 'titleLabel.bottom;';
+        else if (hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
+        else socialTopAnchor = 'parent.top';
+
         socialAnchors = 'top: ' + socialTopAnchor + ' left: parent.left; right: parent.right; topMargin: units.gu(1);'
 
         var socialColor;
Download as text