on xenial help sign in
Fix right padding
commit908134cfa3a240ea0eef025ccfd6db7c322fb264 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateWed 20 Aug 2014, 17:05 (12 years ago) parent7a796ef
2 files changed+4
plugins/Dash/CardCreator.js+2 tests/plugins/Dash/cardcreator/5.res+2
plugins/Dash/CardCreator.js+2
@@ -467,6 +467,8 @@ function cardString(template, components) {
467467 if (!touchdownOnArtShape) {
468468 extraRightAnchor = 'rightMargin: units.gu(1); \n';
469469 extraLeftAnchor = 'leftMargin: units.gu(1); \n';
470+ } else if (headerAsOverlay && !hasEmblem) {
471+ extraRightAnchor = 'rightMargin: units.gu(1); \n';
470472 }
471473
472474 if (hasMascot) {
tests/plugins/Dash/cardcreator/5.res+2
@@ -103,6 +103,7 @@ Label {
103103 id: titleLabel;
104104 objectName: "titleLabel";
105105 anchors { right: parent.right;
106+ rightMargin: units.gu(1);
106107 left: parent.left;
107108 leftMargin: units.gu(1);
108109 top: overlayLoader.top;
@@ -124,6 +125,7 @@ Label {
124125 objectName: "subtitleLabel";
125126 anchors { left: titleLabel.left;
126127 leftMargin: titleLabel.leftMargin;
128+ rightMargin: units.gu(1);
127129 right: titleLabel.right;
128130 top: titleLabel.bottom;
129131 }