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

This commit is contained in:
Ronan Abhamon 2017-03-13 10:47:22 +01:00
parent 3fb64ed392
commit 0488bbd36d

View file

@ -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