Skip to content

Commit

Permalink
Fix polaroid images
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfett committed Jan 20, 2012
1 parent 3921515 commit ef5c119
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions files/advancedcaching/qml/PolaroidImage.qml
Expand Up @@ -15,7 +15,7 @@ Rectangle {
z: targetZ
Image {
id: image
y: borderWidth
y: borderWidth - (height - paintedHeight)/2
x: borderWidth
smooth: true
z: targetZ + 1
Expand All @@ -30,13 +30,12 @@ Rectangle {
wrapMode: Text.Wrap
anchors.left: image.left
anchors.right: image.right
anchors.top: image.bottom
anchors.topMargin: borderWidth
y: borderWidth + image.paintedHeight + borderWidth
z: targetZ + 1
height: (text != "") ? null : -borderWidth
height: (text != "") ? paintedHeight : -borderWidth
}

height: borderWidth + image.height + 2 * borderWidth + label.height
height: borderWidth + image.paintedHeight + 2 * borderWidth + label.height
width: image.width + 2*borderWidth
}

0 comments on commit ef5c119

Please sign in to comment.