mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 13:48:08 +00:00
fix(ui/modules/Common/SearchBox): hide menu if height, width, x or y are updated
This commit is contained in:
parent
59f4131d9b
commit
28cf495abc
1 changed files with 4 additions and 3 deletions
|
|
@ -89,6 +89,8 @@ Item {
|
|||
var window = searchBox.Window.window
|
||||
|
||||
var handleCoords = function () {
|
||||
searchBox.hideMenu()
|
||||
|
||||
var point = searchBox.mapToItem(null, 0, searchBox.height)
|
||||
|
||||
desktopPopup.popupX = window.x + point.x
|
||||
|
|
@ -98,12 +100,11 @@ Item {
|
|||
// The menu is always below the search field.
|
||||
this.connect(window, 'heightChanged', handleCoords)
|
||||
this.connect(window, 'widthChanged', handleCoords)
|
||||
|
||||
this.connect(window, 'xChanged', handleCoords)
|
||||
this.connect(window, 'yChanged', handleCoords)
|
||||
|
||||
this.connect(window, 'visibilityChanged', function () {
|
||||
searchBox.hideMenu()
|
||||
})
|
||||
this.connect(window, 'visibilityChanged', handleCoords)
|
||||
|
||||
handleCoords()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue