on xenial help sign in
[Hopefully] Fix infinite loop in some of the GSV tests
2ce7857Albert Astals Cid
qml/Dash/GenericScopeView.qml+1−1
@@ -700,7 +700,7 @@ FocusScope {
700
700
701 function updateVisibility() {
701 function updateVisibility() {
702 var companionPos = companionTo.mapToItem(floatingSeeLess, 0, 0);
702 var companionPos = companionTo.mapToItem(floatingSeeLess, 0, 0);
703− showBecausePosition = companionPos.y > 0;
703+ showBecausePosition = Math.round(companionPos.y) > 0;
704
704
705 var posToBase = floatingSeeLess.mapToItem(companionBase, 0, -yOffset).y;
705 var posToBase = floatingSeeLess.mapToItem(companionBase, 0, -yOffset).y;
706 yOffset = Math.max(0, companionBase.item.collapsedHeight - posToBase);
706 yOffset = Math.max(0, companionBase.item.collapsedHeight - posToBase);