Use === instead of ==, it is safer
[quandoparte] / 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 {