Skip to content

[Dropdown widget] Re-Opening, or using referenceVar:UpdateChoices(...) changes # of shown items (data.scrollable = nil) #148

@Baertram

Description

@Baertram

Test addon:
https://www.esoui.com/downloads/info2823-ItemCooldownTracker.html#comments
Just remove the data.scrollable at the dropdown

If a dropdown widget is used without explicitly setting data.scrollable = true/, and you add e.g. 30 rows to the dropdown's choices:
On first open it only shows a few rows (10):
https://i.imgur.com/66Ar1FJ.png

You can now use reference:UpdateChoices(choices, choicesValues) or just close and reopen the dropdown.
All of sudden all entries are shown:
https://i.imgur.com/fKThhVC.jpeg

I guess the first behaviour seems wrong and it should show always all entries, if data.scrollable = nil?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions