on xenial help sign in
Take into account carousel selectedItemScaleFactor when setting card fixedArtShapeSize
dbd6f31Albert Astals Cid
qml/Dash/CardCarousel.qml+1−1
@@ -62,7 +62,7 @@ DashRenderer {
62 asynchronous: true
62 asynchronous: true
63 onLoaded: {
63 onLoaded: {
64 item.fixedHeaderHeight = Qt.binding(function() { return carousel.headerHeight; });
64 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); });
66 item.height = Qt.binding(function() { return cardTool.cardHeight; });
66 item.height = Qt.binding(function() { return cardTool.cardHeight; });
67 item.cardData = Qt.binding(function() { return model; });
67 item.cardData = Qt.binding(function() { return model; });
68 item.fontScale = Qt.binding(function() { return carousel.fontScale; });
68 item.fontScale = Qt.binding(function() { return carousel.fontScale; });