mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 07:23:39 +02:00
Android - Avoid overlapping between hint and input in Go To by clearing text when closing the window
This commit is contained in:
parent
00958965bc
commit
6411d1b35b
1 changed files with 4 additions and 3 deletions
|
@ -33,7 +33,8 @@ Item {
|
|||
bar.visible = shown;
|
||||
sendToScript({method: 'shownChanged', params: { shown: shown }});
|
||||
if (shown) {
|
||||
updateLocationText(false);
|
||||
addressLine.text="";
|
||||
updateLocationText(addressLine.text.length > 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,7 +44,7 @@ Item {
|
|||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
updateLocationText(false);
|
||||
updateLocationText(addressLine.text.length > 0);
|
||||
}
|
||||
|
||||
HifiConstants { id: hifi }
|
||||
|
@ -130,7 +131,7 @@ Item {
|
|||
HifiStyles.FiraSansRegular {
|
||||
id: location;
|
||||
font.pixelSize: addressLine.font.pixelSize;
|
||||
color: "gray";
|
||||
color: "lightgray";
|
||||
clip: true;
|
||||
anchors.fill: addressLine;
|
||||
visible: addressLine.text.length === 0
|
||||
|
|
Loading…
Reference in a new issue