make sure to reset compactrep anchors

This commit is contained in:
Marco Martin 2015-06-03 15:49:46 -07:00
parent 7c1bc53c9d
commit 57dfcbcce7

View file

@ -35,6 +35,8 @@ Item {
onCompactRepresentationChanged: { onCompactRepresentationChanged: {
if (compactRepresentation) { if (compactRepresentation) {
compactRepresentation.parent = root; compactRepresentation.parent = root;
compactRepresentation.anchors.fill = undefined;
compactRepresentation.anchors.right = undefined;
compactRepresentation.anchors.left = root.left; compactRepresentation.anchors.left = root.left;
compactRepresentation.anchors.top = root.top; compactRepresentation.anchors.top = root.top;
compactRepresentation.width = units.iconSizes.medium; compactRepresentation.width = units.iconSizes.medium;