瀏覽代碼

Don't force height to be an integer

Donald Carr 8 年之前
父節點
當前提交
2e64a7337a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      qml/common/ArtImage.qml

+ 1 - 1
qml/common/ArtImage.qml

@@ -12,7 +12,7 @@ Item {
 
     //color: Qt.rgba(Math.random(255), Math.random(255), Math.random(255), 1.0)
 
-    height: Math.ceil(width/imageModel.data(modelIndex, PictureModel.RatioRole))
+    height: width/imageModel.data(modelIndex, PictureModel.RatioRole)
     width: parent ? parent.width : 0
 
     Image {