Use === instead of ==, it is safer
authorLuciano Montanaro <mikelima@cirulla.net>
Sun, 2 Oct 2011 14:59:21 +0000 (16:59 +0200)
committerLuciano Montanaro <mikelima@cirulla.net>
Tue, 27 Dec 2011 22:16:52 +0000 (23:16 +0100)
application/resources/harmattan/qml/PageHeader.qml

index 8ab514a..4ad07aa 100644 (file)
@@ -10,7 +10,7 @@ Rectangle {
 
     id: root
     width: parent.width
-    height: screen.currentOrientation == Screen.Landscape ?
+    height: screen.currentOrientation === Screen.Landscape ?
                 UiConstants.HeaderDefaultHeightLandscape :
                 UiConstants.HeaderDefaultHeightPortrait
     gradient: Gradient {