Take into account carousel selectedItemScaleFactor when setting card fixedArtShapeSize
commitdbd6f31cc22aa96521c1905a63a4c0c2e01f69ca
authorAlbert Astals Cid <albert.astals@canonical.com>
dateWed 6 Jul 2016, 15:25 (10 years ago)
parentd4490eb
qml/Dash/CardCarousel.qml+1−1
@@ -62,7 +62,7 @@ DashRenderer {
6262 asynchronous: true
6363 onLoaded: {
6464 item.fixedHeaderHeight = Qt.binding(function() { return carousel.headerHeight; });
65− item.fixedArtShapeSize = Qt.binding(function() { return cardTool.artShapeSize; });
65+ item.fixedArtShapeSize = Qt.binding(function() { return Qt.size(cardTool.artShapeSize.width / carousel.selectedItemScaleFactor, cardTool.artShapeSize.height / carousel.selectedItemScaleFactor); });
6666 item.height = Qt.binding(function() { return cardTool.cardHeight; });
6767 item.cardData = Qt.binding(function() { return model; });
6868 item.fontScale = Qt.binding(function() { return carousel.fontScale; });