on xenial help sign in
Fix warning about anchors.fill in ProportionalShape

We don't need the fill since ProportionalShape has a fixed aspect ratio (LP: #1590963)

commit8962f7eebdbed17ab88e614ca76a1f2d82bda497 authorAlbert Astals Cid <albert.astals@canonical.com> dateFri 17 Jun 2016, 01:18 (10 years ago) parentf01eb10047ec7b
3 files changed+6−3
plugins/Dash/CardCreator.js+2−1 tests/plugins/Dash/cardcreator/3.res+2−1 tests/plugins/Dash/cardcreator/3.res.cardcreator+2−1
plugins/Dash/CardCreator.js+2−1
@@ -69,7 +69,8 @@ var kArtUbuntuShapeCode = 'UbuntuShape { \n\
6969 }';
7070
7171var kArtProportionalShapeCode = 'ProportionalShape { \n\
72− anchors.fill: parent; \n\
72+ anchors.left: parent.left; \n\
73+ anchors.right: parent.right; \n\
7374 source: artImage; \n\
7475 aspect: UbuntuShape.DropShadow; \n\
7576 }';
tests/plugins/Dash/cardcreator/3.res+2−1
@@ -31,7 +31,8 @@ Item {
3131 visible: image.status == Image.Ready;
3232 readonly property alias image: artImage;
3333 ProportionalShape {
34− anchors.fill: parent;
34+ anchors.left: parent.left;
35+ anchors.right: parent.right;
3536 source: artImage;
3637 aspect: UbuntuShape.DropShadow;
3738 }
tests/plugins/Dash/cardcreator/3.res.cardcreator+2−1
@@ -29,7 +29,8 @@ Item {
2929 visible: image.status == Image.Ready;
3030 readonly property alias image: artImage;
3131 ProportionalShape {
32− anchors.fill: parent;
32+ anchors.left: parent.left;
33+ anchors.right: parent.right;
3334 source: artImage;
3435 aspect: UbuntuShape.DropShadow;
3536 }