Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
fix anchor loop for Magnifier
Browse files Browse the repository at this point in the history
  • Loading branch information
lduboeuf authored and Flohack74 committed Feb 2, 2020
1 parent 5a1bb21 commit ddd892a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions qml/keys/ExtendedKeysSelector.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright 2013 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -68,8 +68,9 @@ KeyPopover {
Rectangle{
id: popoverBackground


anchors.centerIn: anchorItem
//fix anchor loop, see https://forum.qt.io/topic/103522/anchor-loop-with-layout-centerin/4
anchors.horizontalCenter: anchorItem.horizontalCenter
anchors.verticalCenter: anchorItem.verticalCenter
anchors.verticalCenterOffset: -units.dp(UI.popoverTopMargin)

width: {
Expand Down
4 changes: 3 additions & 1 deletion qml/keys/Magnifier.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ KeyPopover {
width: parent.width
height: parent.height

anchors.centerIn: anchorItem
//fix anchor loop, see https://forum.qt.io/topic/103522/anchor-loop-with-layout-centerin/4
anchors.horizontalCenter: anchorItem.horizontalCenter
anchors.verticalCenter: anchorItem.verticalCenter

// this property is used to synchronize scale and opacity animation
property real animationStep: 0
Expand Down

0 comments on commit ddd892a

Please sign in to comment.