diff --git a/applets/kickoff/package/contents/ui/FullRepresentation.qml b/applets/kickoff/package/contents/ui/FullRepresentation.qml --- a/applets/kickoff/package/contents/ui/FullRepresentation.qml +++ b/applets/kickoff/package/contents/ui/FullRepresentation.qml @@ -342,7 +342,7 @@ property int count: 5 // updated in createButtons() width: { - if (!visible) { + if (opacity == 0) { return 0; } @@ -356,7 +356,7 @@ } height: { - if (!visible) { + if (opacity == 0) { return 0; } @@ -490,7 +490,12 @@ } PropertyChanges { target: tabBar - visible: tabBar.count > 1 + //Set the opacity and NOT the visibility, as visibility is recursive + //and this binding would be executed also on popup show/hide + //as recomended by the docs: http://doc.qt.io/qt-5/qml-qtquick-item.html#visible-prop + //plus, it triggers https://bugreports.qt.io/browse/QTBUG-66907 + //in which a mousearea may think it's under the mouse while it isn't + opacity: tabBar.count > 1 ? 1 : 0 } }, State { @@ -501,14 +506,14 @@ } PropertyChanges { target: tabBar - visible: tabBar.count > 1 + opacity: tabBar.count > 1 ? 1 : 0 } }, State { name: "Search" PropertyChanges { target: tabBar - visible: false + opacity: 0 } PropertyChanges { target: mainTabGroup