Fix warning about anchors.fill in ProportionalShape
We don't need the fill since ProportionalShape has a fixed aspect ratio
commit047ec7b18b061eedf6f691e255ed11fd469d2287
authorAlbert Astals Cid <albert.astals@canonical.com>
dateFri 10 Jun 2016, 16:44 (10 years ago)
parent4fcf8c6
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
@@ -30,7 +30,8 @@ Item {
3030 visible: image.status == Image.Ready;
3131 readonly property alias image: artImage;
3232 ProportionalShape {
33− anchors.fill: parent;
33+ anchors.left: parent.left;
34+ anchors.right: parent.right;
3435 source: artImage;
3536 aspect: UbuntuShape.DropShadow;
3637 }