on xenial help sign in
Fix warning about anchors.fill in ProportionalShape
8962f7eAlbert 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
@@ -29,7 +29,8 @@ Item {
29 visible: image.status == Image.Ready;
29 visible: image.status == Image.Ready;
30 readonly property alias image: artImage;
30 readonly property alias image: artImage;
31 ProportionalShape {
31 ProportionalShape {
32− anchors.fill: parent;
32+ anchors.left: parent.left;
33+ anchors.right: parent.right;
33 source: artImage;
34 source: artImage;
34 aspect: UbuntuShape.DropShadow;
35 aspect: UbuntuShape.DropShadow;
35 }
36 }