mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 14:18:09 +00:00
fix(ui/modules/Common/Popup/DropDownDynamicMenu): test correctly list parameter
This commit is contained in:
parent
3fb64ed392
commit
0488bbd36d
1 changed files with 4 additions and 1 deletions
|
|
@ -17,7 +17,10 @@ AbstractDropDownMenu {
|
|||
|
||||
var list = _content[0]
|
||||
Utils.assert(list != null, 'No list found.')
|
||||
Utils.assert(Utils.qmlTypeof(list, 'QQuickListView'), 'No list view parameter.')
|
||||
Utils.assert(
|
||||
Utils.qmlTypeof(list, 'QQuickListView') || Utils.qmlTypeof(list, 'ScrollableListView'),
|
||||
'No list view parameter.'
|
||||
)
|
||||
|
||||
var height = list.count * entryHeight
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue