on xenial help sign in
Fix warning about anchors.fill in ProportionalShape
047ec7bAlbert Astals Cid
plugins/Dash/CardCreator.js+2−1
@@ -69,7 +69,8 @@ var kArtUbuntuShapeCode = 'UbuntuShape { \n\
69 }';
69 }';
70
70
71var kArtProportionalShapeCode = 'ProportionalShape { \n\
71var kArtProportionalShapeCode = 'ProportionalShape { \n\
72− anchors.fill: parent; \n\
72+ anchors.left: parent.left; \n\
73+ anchors.right: parent.right; \n\
73 source: artImage; \n\
74 source: artImage; \n\
74 aspect: UbuntuShape.DropShadow; \n\
75 aspect: UbuntuShape.DropShadow; \n\
75 }';
76 }';
tests/plugins/Dash/cardcreator/3.res+2−1
@@ -31,7 +31,8 @@ Item {
31 visible: image.status == Image.Ready;
31 visible: image.status == Image.Ready;
32 readonly property alias image: artImage;
32 readonly property alias image: artImage;
33 ProportionalShape {
33 ProportionalShape {
34− anchors.fill: parent;
34+ anchors.left: parent.left;
35+ anchors.right: parent.right;
35 source: artImage;
36 source: artImage;
36 aspect: UbuntuShape.DropShadow;
37 aspect: UbuntuShape.DropShadow;
37 }
38 }
tests/plugins/Dash/cardcreator/3.res.cardcreator+2−1
@@ -30,7 +30,8 @@ Item {
30 visible: image.status == Image.Ready;
30 visible: image.status == Image.Ready;
31 readonly property alias image: artImage;
31 readonly property alias image: artImage;
32 ProportionalShape {
32 ProportionalShape {
33− anchors.fill: parent;
33+ anchors.left: parent.left;
34+ anchors.right: parent.right;
34 source: artImage;
35 source: artImage;
35 aspect: UbuntuShape.DropShadow;
36 aspect: UbuntuShape.DropShadow;
36 }
37 }