From 41d014ca0c374709c9d1ea1d1b16f959ae9a1a54 Mon Sep 17 00:00:00 2001 From: beholder Date: Wed, 6 Sep 2017 02:11:40 +0300 Subject: [PATCH] 6718 PR11082: Help text cannot be dismissed by clicking on the text inside the box. --- .../resources/qml/hifi/LetterboxMessage.qml | 41 +------------------ 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/interface/resources/qml/hifi/LetterboxMessage.qml b/interface/resources/qml/hifi/LetterboxMessage.qml index 6f41154d4d..7ce66adf11 100644 --- a/interface/resources/qml/hifi/LetterboxMessage.qml +++ b/interface/resources/qml/hifi/LetterboxMessage.qml @@ -137,48 +137,11 @@ Item { } } } - // Left gray MouseArea MouseArea { - anchors.left: parent.left; - anchors.right: textContainer.left; - anchors.top: textContainer.top; - anchors.bottom: textContainer.bottom; + anchors.fill: parent acceptedButtons: Qt.LeftButton onClicked: { - letterbox.visible = false - } - } - // Right gray MouseArea - MouseArea { - anchors.left: textContainer.left; - anchors.right: parent.left; - anchors.top: textContainer.top; - anchors.bottom: textContainer.bottom; - acceptedButtons: Qt.LeftButton - onClicked: { - letterbox.visible = false - } - } - // Top gray MouseArea - MouseArea { - anchors.left: parent.left; - anchors.right: parent.right; - anchors.top: parent.top; - anchors.bottom: textContainer.top; - acceptedButtons: Qt.LeftButton - onClicked: { - letterbox.visible = false - } - } - // Bottom gray MouseArea - MouseArea { - anchors.left: parent.left; - anchors.right: parent.right; - anchors.top: textContainer.bottom; - anchors.bottom: parent.bottom; - acceptedButtons: Qt.LeftButton - onClicked: { - letterbox.visible = false + letterbox.visible = false; } } }