Commit 0488bbd3 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Common/Popup/DropDownDynamicMenu): test correctly list parameter

parent 3fb64ed3
...@@ -17,7 +17,10 @@ AbstractDropDownMenu { ...@@ -17,7 +17,10 @@ AbstractDropDownMenu {
var list = _content[0] var list = _content[0]
Utils.assert(list != null, 'No list found.') 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 var height = list.count * entryHeight
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment